R/HydroModel.R

Defines functions HydroModel

Documented in HydroModel

## construct a HydroModel object ready for simulation

HydroModel <- function(model, parameters, data, ...){
  new("HydroModel",
      ## todo: make a function that gets the right Hydro*Parameters object here
      parameters=as(parameters, "HydroModelParameters"),
      data = try.xts(data),
      model = model,
      dots = as.list(substitute(list(...)))[-1])
}

Try the RHydro package in your browser

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

RHydro documentation built on May 31, 2017, 4:50 a.m.