SyntaxFix
Write A Post
Hire A Developer
Questions
Very simple use of any
any
df <- <your structure> df$Den <- apply(df,1,function(i) {ifelse(any(is.na(i)) | any(i != 1), 0, 1)})