Is there a situation where the magrittr pipe operator %>% works and the native |> does not?

43 Views Asked by At

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")))

0

There are 0 best solutions below