relocate_all | R Documentation |
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 |
data frame |
... |
a tidyselect specification |
regex |
a regular expression to match columns that will be put at the front of the df |
data frame
iris %>%
head %>%
relocate_all(matches("Petal"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.