tidyr_tidy_select {tidyr}R Documentation

Argument type: tidy-select

Description

This page describes the ⁠<tidy-select>⁠ argument modifier which indicates that the argument uses tidy selection, a sub-type of tidy evaluation. If you've never heard of tidy evaluation before, start with the practical introduction in https://r4ds.hadley.nz/functions.html#data-frame-functions then then read more about the underlying theory in https://rlang.r-lib.org/reference/topic-data-mask.html.

Overview of selection features

tidyselect implements a DSL for selecting variables. It provides helpers for selecting variables:

As well as operators for combining those selections:

Key techniques

# has NOTE
df %>% select(x, y, z)

# no NOTE
df %>% select("x", "y", "z")

[Package tidyr version 1.3.1 Index]