View source: R/relocate_with.R
relocate_with | R Documentation |
Relocate columns
relocate_with(
.data,
.fn,
.cols = everything(),
.before = NULL,
.after = NULL,
...
)
.data |
A |
.fn |
A function to reorder |
.cols |
Columns to move |
.before , .after |
Destination of columns. If both selected, errors. If neither, moves to right of first selected column. |
... |
additional arguments to pass to |
And object with same type as .data
.
data(sd)
sd |> relocate_with(sort)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.