f.which.max {msdrought}R Documentation

Change behavior of which.max to work as if it had an na.rm=TRUE option

Description

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

## Not run: 
f.which.max(1:5)
f.which.max(NA)

## End(Not run)

[Package msdrought version 0.1.1 Index]