Description Usage Arguments Details S4 methods References See Also Examples
range
returns a vector containing the minimum and maximum of
all the given arguments.
1 2 3 4 |
... |
any |
na.rm |
logical, indicating if |
finite |
logical, indicating if all non-finite elements should be omitted. |
range
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.
If na.rm
is FALSE
, NA
and NaN
values in any of the arguments will cause NA
values
to be returned, otherwise NA
values are ignored.
If finite
is TRUE
, the minimum
and maximum of all finite values is computed, i.e.,
finite = TRUE
includes na.rm = TRUE
.
A special situation occurs when there is no (after omission
of NA
s) nonempty argument left, see min
.
This is part of the S4 Summary
group generic. Methods for it must use the signature
x, ..., na.rm
.
Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language. Wadsworth & Brooks/Cole.
The extendrange()
utility in package grDevices.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.