truthy: A python / javascript-like "truthy" notion

Description Usage Arguments Details Value Functions

View source: R/logical.R

Description

Values are truthy that are not null, NA, empty, 0, or FALSE.

Usage

1
2
3
truthy(x)

falsy(x)

Arguments

x

Any object, value or NULL

Details

Note that this is per se not vectorised, because a non-empty list or vector is "truthy" as such.

Value

logical

Functions


tidytidbits documentation built on March 8, 2021, 5:07 p.m.