Change behavior of which.max to work as if it had an na.rm=TRUE option
Source:R/which_max.R
f.which.max.Rd
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.