I want to create a variable 'oth' which is TRUE if none of the variables 'com', 'edit' or 'cont' are TRUE. The three variables are logical vectors taking the values TRUE or FALSE.
I tried to do 2 things:
data$oth <- all(!data$com, !data$edit, !data$cont)
data$oth <- all(data$com==F, data$edit==F, data$cont==F)
None worked, i.e., $oth was just a vector of all FALSE. Are there an reverse to the all() function in R or how should I do this?