Hi,
Is it possible to combine the selection types for scoped functions? For example, I would like to convert mostly all character columns to upper case, but excluding some of them.
df <-
df %>%
mutate_if(is.character, -colA, -colD, toupper)
df <-
df %>%
mutate_if(is.character, -vars(ends_with("_lower"), toupper)
Do you have any better (tidier) solution than to create separately a list/vector of column names and use the mutate_at(vars())
?
Thank you for your help.