Learn R Programming

spartan (version 3.0.2)

build_curve_results_from_r_object: When developing spartanDB, it became clear curve results may not be in separate files but in one R object. This takes an R object containing curve summaries and builds these into the format spartan requires to perform the analysis

Description

When developing spartanDB, it became clear curve results may not be in separate files but in one R object. This takes an R object containing curve summaries and builds these into the format spartan requires to perform the analysis

Usage

build_curve_results_from_r_object(CURVE_SUMMARY, NUMCURVES, NUMSAMPLES,
  MEASURES, PARAMETERS)

Arguments

CURVE_SUMMARY

R object containing summaries for all curves

NUMCURVES

The number of 'resamples' to perform (see eFAST documentation) - recommend using at least 3

NUMSAMPLES

The number of parameter subsets that were generated in the eFAST design

MEASURES

Array containing the names of the output measures which are used to analyse the simulation

PARAMETERS

Array containing the names of the parameters of which parameter samples have been generated

Value

R matrix containing the curve summaries in the format spartan requires