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 Dec. 12, 2020, 2 a.m.