I was working on a situation where I had to use (.) to refer to columns. The native one |> didn't work but %>% did work
I expected to change column names of data with
setNames(c("Region", paste0(colnames(.)[-1], "_22")))
I was working on a situation where I had to use (.) to refer to columns. The native one |> didn't work but %>% did work
I expected to change column names of data with
setNames(c("Region", paste0(colnames(.)[-1], "_22")))
Copyright © 2021 Jogjafile Inc.