> nah=FALSE
> for(TRUF in FALSE:(TRUE*(TRUE+TRUE+TRUE)*(TRUE+TRUE))) {
print(nah); nah=any(FALSE, NA, na.rm=nah)
}
[1] NA
[1] FALSE
[1] NA
[1] FALSE
[1] NA
[1] FALSE
[1] NA
> nah=FALSE
> for(TRUF in FALSE:(TRUE*(TRUE+TRUE+TRUE)*(TRUE+TRUE))) {
print(nah); nah=any(FALSE, NA, na.rm=nah)
}
[1] NA
[1] FALSE
[1] NA
[1] FALSE
[1] NA
[1] FALSE
[1] NA
> bool_vect=c(TRUE, FALSE, NA)
> any(bool_vect)
[1] TRUE
> bool_vect=c(FALSE, NA)
> any(bool_vect)
[1] NA
> any(bool_vect, na.rm=TRUE)
[1] FALSE