Skip to content

Selecting variables

Language and helpers

language select_helpers
Selection language
starts_with() ends_with() contains() matches() num_range()
Select variables that match a pattern
all_of() any_of()
Select variables from character vectors
everything() last_col()
Select all variables or the last variable
where()
Select variables with a function

FAQ

faq-external-vector
FAQ - Note: Using an external vector in selections is ambiguous
faq-selection-context
FAQ - Error: Must be used within a selecting function

Creating tidyselect API

Evaluate expressions with tidyselect rules

eval_rename() eval_select()
Evaluate an expression with tidyselect semantics
eval_relocate()
Evaluate an expression to relocate variables
tidyselect_data_proxy() tidyselect_data_has_predicates()
tidyselect methods for custom types

Peek at current selection variables

peek_vars() peek_data()
Peek at variables in the selection context