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

View source: R/logical.R

truthyR Documentation

A python / javascript-like "truthy" notion

Description

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

Usage

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

  • falsy: x is not truthy


tidytidbits documentation built on March 18, 2022, 6:10 p.m.