util.list {CHNOSZ} | R Documentation |
Identify list elements that have the maximum (or minimum) values.
which.pmax(x, maximum = TRUE)
x |
list of numeric vectors |
maximum |
logical, find maximum values or minimum values? |
which.pmax
takes a list of equal-length numeric vectors or equal-dimension arrays in x
and returns the index of the list element that has the maximum value at each point.
Change maximum
to FALSE
to find the minimum values instead.