R/HydroModel.R

## 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 2, 2019, 6:24 p.m.