R/posMin.R

Defines functions posMin

Documented in posMin

posMin = function(x, ...) {
  x=x[x>=0]
  if(length(x)>0) {
    min(x, ...)
  } else {
    as.numeric(NA)
  }
}

Try the tilingArray package in your browser

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

tilingArray documentation built on Nov. 8, 2020, 10:59 p.m.