Given a set of logical vectors, are all of the values true?
zero or more logical vectors. Other objects of zero length are ignored, and the rest are coerced to logical ignoring any class.
logical. If true
This is a generic function: methods can be defined for it
directly or via the
Summary group generic.
For this to work properly, the arguments
... should be
unnamed, and dispatch is on the first argument.
Coercion of types other than integer (raw, double, complex, character, list) gives a warning as this is often unintentional.
This is a primitive function.
The value is a logical vector of length one.
x denote the concatenation of all the logical vectors in
... (after coercion), after removing
NAs if requested by
na.rm = TRUE.
The value returned is
TRUE if all of the values in
TRUE (including if there are no values), and
FALSE if at
least one of the values in
FALSE. Otherwise the
NA (which can only occur if
na.rm = FALSE and
... contains no
FALSE values and at least one
This is part of the S4
group generic. Methods for it must use the signature
x, ..., na.rm.
all(logical(0)) is true is a useful convention:
it ensures that
x has length zero.
Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language. Wadsworth & Brooks/Cole.
any, the ‘complement’ of
stopifnot(*) which is an
1 2 3 4
We want your feedback!
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.