R/Utils.R

## =================================================================================
## function to extract parts of InputsPert or OutputsModelDA objects
## =================================================================================

'[.InputsPert' <-  function(x, i) {
  res <- NextMethod()
  if (is.numeric(i)) {
    res$NbMbr <- x$NbMbr
  }
  return(res)
}


'[.OutputsModelDA' <- function(x, i) {
  res <- NextMethod()
  if (is.numeric(i)) {
    res <- airGR:::.ExtractOutputsModel(x, i)
    res$NbMbr   <- x$NbMbr
    res$NbTime  <- x$NbTime
    res$NbState <- x$NbState
  }
  return(res)
}

Try the airGRdatassim package in your browser

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

airGRdatassim documentation built on Feb. 11, 2021, 5:06 p.m.