util.list {CHNOSZ}R Documentation

Functions to Work with Lists

Description

Identify list elements that have the maximum (or minimum) values.

Usage

  which.pmax(x, maximum = TRUE)

Arguments

x

list of numeric vectors

maximum

logical, find maximum values or minimum values?

Details

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.


[Package CHNOSZ version 2.1.0 Index]