varmapToList: Converts the varmap to a list

View source: R/SimplaceWrapper.R

varmapToListR Documentation

Converts the varmap to a list

Description

Converts the varMap to a list. All elements are converted to appropriate R objects. Arrays are expanded to vectors by default.

Usage

varmapToList(varmap, expand = TRUE)

Arguments

varmap

the varMap returned by stepSimulation

expand

if TRUE expand array objects to vector.

Value

list with parameter name as key and parameter value as value

Examples

## Not run: 
simplace <- initSimplace(SimplaceInstallationDir,SimplaceWorkDir,SimplaceOutputDir)
openProject(simplace, Solution)
createSimulation(simplace)
varmap <- stepSimulation(simplace,count=22)
closeProject(simplace)   
varlist <- varmapToList(varmap)
varlist$startdate - 365
varlist$LintulBiomass.sWSO
## End(Not run)

simplace documentation built on Aug. 24, 2023, 3:03 p.m.