sort_cols | R Documentation |
sort_cols
alphabetises the columns of a data frame or tibble.
sort_cols(.data, ...)
.data |
A data frame or tibble. |
... |
(Optional) unquoted expressions determining left-most columns.
See |
An object of the same class as .data
.
sort_cols(mtcars, weight = wt) # left-most column will be "weight"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.