max(..., na.rm = F) min(..., na.rm = F)
na.rm=
form.
...
" arguments.
Any
NA
s in the data produce
NA
as a result unless
na.rm = TRUE
.
These are members of the
group of generic functions.
pmax
and
pmin
generate a vector of parallel extremes, and
range
computes both
max
and
min
.
# create some sample objects x <- c(1, 2, 3) y <- c(4, 5, NA) min(na.rm = T, x, y) # returns 1 since na.rm = T min(x, y) # returns NA