istrue {CALIBERdatamanage} | R Documentation |
Use istrue()
as a wrapper for conditional statements which might
be missing if one of the components is missing, but for which you want
a missing value to be interpreted as FALSE.
istrue(x) isfalse(x)
x |
logical expression to evaluate. |
A convenience function to avoid unwanted NA's.
A logical vector containing TRUE or FALSE, with no missing values.
istrue(c(TRUE, FALSE, NA)) # TRUE FALSE FALSE isfalse(c(TRUE, FALSE, NA)) # FALSE TRUE FALSE