range {base} | R Documentation |
range returns a vector containing the minimum and maximum
of all the given arguments.
range(x,
na.rm = FALSE,
finite = FALSE);
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 NAs) nonempty argument left, see min.
# [2] 1 6
range(1:6);