dplyr::select()
/dplyr::rename()
f_select()
operates the exact same way as dplyr::select()
and
can be used naturally with tidy-select
helpers.
It uses collapse to perform the actual selecting of variables and is
considerably faster than dplyr for selecting exact columns,
and even more so when supplying the .cols
argument.
f_select(data, ..., .cols = NULL)f_rename(data, ..., .cols = NULL)
A data.frame
of selected columns.
A data frame.
Variables to select using tidy-select
.
See ?dplyr::select
for more info.
(Optional) faster alternative to ...
that accepts
a named character vector or numeric vector.
No checks on duplicates column names are done when using .cols
.
If speed is an expensive resource, it is recommended to use this.