MinMaxGC {gcplyr} | R Documentation |
Maxima and Minima
Description
Returns the maxima and minima of the input values.
Usage
max_gc(..., na.rm = TRUE, allmissing_NA = TRUE)
min_gc(..., na.rm = TRUE, allmissing_NA = TRUE)
Arguments
... |
numeric or character arguments |
na.rm |
a logical indicating whether missing values should be removed. |
allmissing_NA |
a logical indicating whether |
Details
These functions are wrappers for min
and max
,
with the additional argument allmissing_NA
.
Value
If allmissing_NA = FALSE
, identical to min
or
max
.
If allmissing_NA = TRUE
, identical to min
or
max
except that, in cases where min
or
max
would return an infinite value and raise a warning because
there are no non-missing arguments, min_gc
and
max_gc
return NA
[Package gcplyr version 1.10.0 Index]