| WhichMinMaxGC {gcplyr} | R Documentation |
Where is the Min() or Max() or first TRUE or FALSE?
Description
Determines the location, i.e. index, of the (first) minimum or maximum of a numeric (or logical) vector.
Usage
which_min_gc(x, empty_NA = TRUE)
which_max_gc(x, empty_NA = TRUE)
Arguments
x |
numeric (logical, integer, or double) vector or an |
empty_NA |
logical, indicating if an empty value should be returned
as |
Details
These functions are wrappers for which.min and which.max,
with the additional argument empty_NA.
Value
If empty_NA = FALSE, identical to which.min or
which.max
If empty_NA = TRUE, identical to which.min or
which.max except that, in cases where which.min or
which.max would return integer(0), which_min_gc and
which_max_gc return NA
[Package gcplyr version 1.10.0 Index]