where: Select variables with a function

whereR Documentation

Select variables with a function

Description

This is a copy of where, a selection helper that selects the variables for which a predicate function returns TRUE. See language for more details about tidyselection.

Usage

where(fn)

Arguments

fn

A function that returns TRUE or FALSE (technically, a predicate function). Can also be a purrr-like formula.

Details

This help file was replicated verbatim from tidyselect-package.

Value

A predicate that can be used to select columns from a data.frame.

References

Lionel Henry and Hadley Wickham (2021). tidyselect: Select from a Set of Strings. R package version 1.1.1. https://CRAN.R-project.org/package=tidyselect

Examples

NULL


keyes-timothy/tidytof documentation built on Aug. 28, 2024, 8:37 a.m.