R/posifybivden.R

Defines functions posifybivden

Documented in posifybivden

posifybivden <- function(x, eps=.Machine$double.xmin) {
  force(eps)
  if(is.im(x)) return(eval.im(pmax(eps, x)))
  if(is.numeric(x)) return(pmax(eps, x))
  return(x)
}

Try the sparr package in your browser

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

sparr documentation built on March 31, 2023, 8:40 p.m.