Shorthand for {dplyr} functions called consecutively.

select_one_of(data, cols, drop = FALSE)

Arguments

data

A data.frame.

cols

A character vector corresponding to the columns in data to be selected by dplyr::one_of().

drop

If FALSE, does NOT drop all columns not specified by cols. (i.e. This is like calling tidyselect::everything()).

Value

A tibble.

Details

There is probably a better way to implement this function internally. Should review tidyselect::one_of() and tidyr::separate()'s into argument.

See also

Other dplyr-cols: add_rnk_col