range(..., na.rm=F)
NAs) are allowed.
na.rm= form.
NAs in the input result in
NAs in the output unless
na.rm=TRUE.
This is part of the
Summary group of generic functions -- see
Methods.
This function is useful as an argument to plotting when it is
desired to specify the limits for the x- or y-axes.
(See the plot example.)
plot(x, y, ylim=range(y, 0, 1)) # force y-axis to include (0, 1) diff(range(x)) # distance between max and min