dplyr::select(data, tidyselect::one_of(cols), tidyselect::everything())
select_one_of.Rd
Shorthand for {dplyr}
functions called consecutively.
select_one_of(data, cols, drop = FALSE)
data | A |
---|---|
cols | A character vector corresponding to the columns in |
drop | If |
A tibble.
There is probably a better way to implement this function internally.
Should review tidyselect::one_of()
and tidyr::separate()
's into
argument.
Other dplyr-cols: add_rnk_col