tidyr_tidy_select {tidyr}R Documentation

Argument type: tidy-select

Description

This page the describes the <tidy-select> argument modifier which indicates the argument uses tidy selection (a special type of tidy evaluation). Tidy selection provides a concise DSL for selecting variables based on their names.

Overview of selection features

Tidyverse selections implement a dialect of R where operators make it easy to select variables:

In addition, you can use selection helpers. Some helpers select specific columns:

These helpers select variables by matching patterns in their names:

These helpers select variables from a character vector:

This helper selects variables with a function:

Indirection

There are two main cases:

Learn more in vignette("programming.Rmd").


[Package tidyr version 1.1.3 Index]