R/rd.R

rd <-
function (n, T.dist, T.dist.par) {
rDis = paste("r", T.dist, sep="" , collapse="")

if(length(T.dist.par)==1)
  { rd.t = do.call(rDis, list(n, T.dist.par[1])) } 
  else{
      if(length(T.dist.par)==2)
        { rd.t = do.call(rDis, list(n, T.dist.par[1], T.dist.par[2])) } 
        else
          { rd.t  = do.call(rDis, list(n, T.dist.par[1], T.dist.par[2], T.dist.par[3])) }
      }

return( rd.t )
}

Try the DISTRIB package in your browser

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

DISTRIB documentation built on May 2, 2019, 2:51 p.m.