isTrue: More flexible version of isTRUE

View source: R/isTrue.R

isTrueR Documentation

More flexible version of isTRUE

Description

Returns TRUE for TRUE elements, FALSE for FALSE elements, and whatever is specified in na for NA items.

Usage

isTrue(x, na = FALSE)

Arguments

x

The vector to check for TRUE, FALSE, and NA values.

na

What to return for NA values.

Value

A logical vector.

Examples

isTrue(c(TRUE, FALSE, NA));
isTrue(c(TRUE, FALSE, NA), na=TRUE);


ufs documentation built on May 29, 2024, 10:30 a.m.

Related to isTrue in ufs...