Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

one_of

Superseded selection helpers


Description

one_of() is superseded in favour of the more precise any_of() and all_of() selectors.

Usage

one_of(..., .vars = NULL)

Arguments

...

One or more character vectors.

.vars

A character vector of variable names. When called from inside selecting functions like dplyr::select() these are automatically set to the names of the table.


tidyselect

Select from a Set of Strings

v1.1.1
MIT + file LICENSE
Authors
Lionel Henry [aut, cre], Hadley Wickham [aut], RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.