Moves columns of a GPU table to a new position, similar to
dplyr::relocate(). The reorder runs on the GPU as a column selection,
like select.tbl_gpu(); a rename (relocate(df, a = x)) only changes the
column names, like rename.tbl_gpu().
Usage
# S3 method for class 'tbl_gpu'
relocate(.data, ..., .before = NULL, .after = NULL)Arguments
- .data
A
tbl_gpuobject created bytbl_gpu().- ...
Columns to move (tidyselect syntax; may include
new = oldrenames).- .before, .after
Destination, as a tidyselect specification of an existing column; the selected columns are placed immediately before/ after it. At most one of
.before/.aftermay be supplied; if neither is given, selected columns move to the front.
