data_select: Conditionally Select A Dataset

Description Usage Arguments Value

View source: R/manipulate.R

Description

Like ifelse, but not awful and usable with data.frames, similar to dplyr::if_else

Usage

1
data_select(test, yes_set, no_set)

Arguments

test

an object which can be coerced to logical mode.

yes_set

the dataset to return if test is true.

no_set

the dataset to return if test is false.

Value

The appropriate object.


wikimedia/wikimedia-discovery-polloi documentation built on Dec. 4, 2019, 2:12 p.m.