numToBool: Numeric to boolean

Description Usage Arguments Details Value Examples

View source: R/FunctionsSupplementary.R

Description

Converts numeric format to boolean format.

Usage

1

Arguments

x

numeric value (0, 1)

Details

If the function is supposed to be used on a vector, the form sapply("vector", numToBool) needs to be applied.

Value

boolean value (T, F)

Examples

1
2
dStatus <- c(0,0,1,1,0,1)
sapply(dStatus, numToBool)

PoDBAY documentation built on Sept. 21, 2021, 5:08 p.m.