powered by
Relocate columns
relocate(.data, ..., .before = NULL, .after = NULL)
A new vectra_node with reordered columns.
vectra_node
A vectra_node object.
Column names to move.
Column name to place before (unquoted).
Column name to place after (unquoted).
f <- tempfile(fileext = ".vtr") write_vtr(mtcars, f) tbl(f) |> relocate(hp, wt, .before = cyl) |> collect() |> head() unlink(f)
Run the code above in your browser using DataLab