View source: R/verbs_utility.R
| relocate | R Documentation |
Relocate columns
relocate(.data, ..., .before = NULL, .after = NULL)
.data |
A |
... |
Column names to move. |
.before |
Column name to place before (unquoted). |
.after |
Column name to place after (unquoted). |
A new vectra_node with reordered columns.
f <- tempfile(fileext = ".vtr")
write_vtr(mtcars, f)
tbl(f) |> relocate(hp, wt, .before = cyl) |> collect() |> head()
unlink(f)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.