Skip to contents

Change behavior of which.max to work as if it had an na.rm=TRUE option using https://gis.stackexchange.com/questions/392666/app-function-returns-a-wrong-output-format answer recommended by R Hijmans.

Usage

f.which.max(i)

Arguments

i

A vector

Examples

if (FALSE) { # \dontrun{
f.which.max(1:5)
f.which.max(NA)
} # }