util.list | 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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.