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]
}

Try the pathview package in your browser

Any scripts or data that you put into this service are public.

pathview documentation built on May 2, 2019, 4:56 p.m.