R/Round.R

Defines functions Round

Documented in Round

Round = function(x, n=0) 
{
  return(sign(x)*trunc(abs(x)*10^n + 0.5)/10^n)
}

Try the ncar package in your browser

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

ncar documentation built on Nov. 19, 2023, 9:06 a.m.