Learn R Programming

tidyselect

Overview

The tidyselect package is the backend of functions like dplyr::select() or dplyr::pull() as well as several tidyr verbs. It allows you to create selecting verbs that are consistent with other tidyverse packages.

  • To learn about the selection syntax as a user of dplyr or tidyr, read the user-friendly ?language reference.

  • To learn how to implement tidyselect in your own functions, read vignette("tidyselect").

  • To learn exactly how the tidyselect syntax is interpreted, read the technical description in vignette("syntax").

Installation

Generally, tidyselect will be installed automatically by the packages that need it. If you need to install it manually for some reason, you can get it with:

install.packages("tidyselect")

Code of Conduct

Please note that the tidyselect project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

Copy Link

Version

Install

install.packages('tidyselect')

Monthly Downloads

1,274,557

Version

1.2.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

March 11th, 2024

Functions in tidyselect (1.2.1)

eval_relocate

Evaluate an expression to relocate variables
peek_vars

Peek at variables in the selection context
poke_vars

Replace or get current variables
eval_rename

Evaluate an expression with tidyselect semantics
language

Selection language
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
tidyselect-package

tidyselect: Select from a Set of Strings
tidyselect_data_proxy

tidyselect methods for custom types
vars_pull

Select variable
one_of

Superseded selection helpers
reexports

Objects exported from other packages
starts_with

Select variables that match a pattern
everything

Select all variables or the last variable
vars_select_helpers

List of selection helpers
where

Select variables with a function
vars_select

Select or rename variables
all_of

Select variables from character vectors