all(..., na.rm=F) any(..., na.rm=F)
na.rm=value form.
all evaluates to
TRUE if all the
elements of all the arguments are
TRUE.
It is
FALSE if there are any
FALSEs.
In all other cases (mixtures of
NA and
TRUE) the result is
NA.
If all the arguments are of length 0,
all returns
TRUE.
any evaluates to
TRUE if any of the elements of any of the
arguments is
TRUE.
It is
FALSE if all the elements are
FALSE.
In all other cases (mixtures of
NA and
FALSE) the result is
NA.
If all the arguments are of length 0,
any returns
FALSE.
These functions are members of the
Summary group of generic functions.
if(all(x>0)) x <- sqrt(x)