powered by
Arranges columns alphabetically and then by type The user can supply a tidyselect argument to specify columns that should come first
relocate_all(.data, ..., regex = NULL)
data frame
a tidyselect specification
a regular expression to match columns that will be put at the front of the df
iris %>% head %>% relocate_all(matches("Petal"))
Run the code above in your browser using DataLab