extractModelResults.RepObjs: Extract (and optionally write to csv) model results from...

Description Usage Arguments Details Value

View source: R/extractModelResults.RepObjs.R

Description

Function to extract (and optionally write to csv) model results from TCSAM2015 and rsimTCSAM report objects.

Usage

1
2
3
extractModelResults.RepObjs(tcsams = NULL, rsims = NULL, path = NULL,
  cast.formula = NULL, label.value = "value", csv = NULL,
  verbose = FALSE)

Arguments

tcsams

- single TCSAM2015 model report object, or named list of such

rsims

- single rsimTCSAM results object, or named list of such

path

- path to object to extract

cast.formula

- casting formula for aggregation, or NULL for no aggregation

label.value

- label for value column in output dataframe/csv

csv

- csv file to write to (can be NULL)

verbose

- flag (T/F) to print debug info

Details

If csv is NULL, then no file is written, but the created dataframe is still returned. Uses reshape2::dcast to aggregate using the casting formula.

Value

A dataframe, written to csv if csv was not NULL.


wStockhausen/rTCSAM2015 documentation built on May 3, 2019, 7:14 p.m.