This is a reasonable way for a function to behave…

> 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

Leave a Reply

Your email address will not be published. Required fields are marked *