R/max.abs.R

Defines functions max.abs

Documented in max.abs

max.abs <-
function(x, na.rm=TRUE){
  if(na.rm) x=x[!is.na(x)]
  midx=which.max(abs(x))
  x[midx]
}
datapplab/pathview documentation built on March 30, 2024, 9:06 a.m.