Learn R Programming

simplace (version 5.0.13)

varmapToList: 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)

Value

list with parameter name as key and parameter value as value

Arguments

varmap

the varMap returned by stepSimulation

expand

if TRUE expand array objects to vector.

Examples

Run this code
if (FALSE) {
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}

Run the code above in your browser using DataLab