Combine lists or perform arithmetic operations on elements of lists.

1 | ```
which.pmax(elts, na.rm = FALSE, pmin = FALSE)
``` |

`elts` |
list, numeric vectors for which to find maximum values (in parallel) ( |

`na.rm` |
logical, remove missing values? |

`pmin` |
logical, find minimum values instead of maximum ones? |

`which.pmax`

takes a list of equal-length numeric vectors (or objects that can be coerced to numeric) in `elts`

and returns the index of the vector holding the maximum value at each position.
If `na.rm`

is `TRUE`

, values of `NA`

are removed; if `pmin`

is `TRUE`

the function finds locations of the minimum values instead.

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.