R/sim.default.R

Defines functions sim.default

Documented in sim.default

sim.default <-
function(object)
{
   if (missing(object))
   {
      stop("Missing HMS object!")
   }
   if(class(object) != "createBasin")
   {
      stop("the object must be from class of createBasin!")
   }
   result<-list()
   operation<-sim.base(object)
   result$operation<-operation
   result$call<-match.call()
   class(result)<-"sim"
   return(result)
}

Try the RHMS package in your browser

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

RHMS documentation built on Sept. 27, 2021, 5:06 p.m.