isTruthyInside: isTruthyInside

View source: R/TruthyHelpers.R

isTruthyInsideR Documentation

isTruthyInside

Description

isTruthyInside tests the "truthiness" of positions of a vector or list (while isTruthy tests the vector as a whole).

Usage

isTruthyInside(x)

Arguments

x

A vector or list

Details

isTruthyInside

Value

A logical vector for each position indicating TRUE/FALSE. Returns NULL if the object x itself is not truthy or missing.

Examples

isTruthyInside(1:5)
#> [1] TRUE TRUE TRUE TRUE TRUE
isTruthyInside(c(1, NA, 2))
#> [1]  TRUE FALSE  TRUE
isTruthyInside(list(1, NA, NULL, integer(0), 2))
#> [1]  TRUE FALSE FALSE FALSE  TRUE

SigurdJanson/shinyCSVImpoMod documentation built on Jan. 5, 2023, 3:57 a.m.