numToBool {PoDBAY}R Documentation

Numeric to boolean

Description

Converts numeric format to boolean format.

Usage

numToBool(x)

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

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


[Package PoDBAY version 1.4.3 Index]