powered by
Converts numeric format to boolean format.
numToBool(x)
numeric value (0, 1)
boolean value (T, F)
If the function is supposed to be used on a vector, the form sapply("vector", numToBool) needs to be applied.
sapply("vector", numToBool)
# NOT RUN { dStatus <- c(0,0,1,1,0,1) sapply(dStatus, numToBool) # }
Run the code above in your browser using DataLab