dexi_bool {DEXiR} | R Documentation |
Convert a DEXi string to logical. "TRUE"
, "T"
and "1"
are interpreted as TRUE
,
all other strings as FALSE
.
dexi_bool(x)
x |
character(1). |
logical(1)
.
dexi_bool("TRUE")
sapply(c("TRUE", "T", "1", TRUE, 1, "FALSE", "F", "0", NULL, NA, NaN), dexi_bool)