Selecting variables

Language and helpers

language

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

Peek at current selection variables

peek_vars() peek_data()

Peek at variables in the selection context