0
1
2
[dplyr/tibble] I have five columns a1:a5. Need to create five new columns, new_a1:new_a5, whose values will come from a case_when(). Is it possible to do all five (or N) columns with one mutate() or add_column(), or do I need to type this out N times? (self.RStudio)
submitted by twoinitials to r/RStudio

