resultToList: Convert result to list

View source: R/SimplaceWrapper.R

resultToListR Documentation

Convert result to list

Description

Converts all scalar output columns to appropriate R lists. Columns containing arrays are left unchanged, unless expand is TRUE.

Usage

resultToList(result, expand = FALSE, from = NULL, to = NULL)

Arguments

result

handle to the data container returned by getResult

expand

if true columns with arrays are partially expanded

from

start of the result range, if to/from are not set, full result is returned

to

end of the result range, if to/from are not set, full result is returned

Value

list with output columns

See Also

resultToDataframe returns the scalar output columns as data.frame

Examples

## Not run: 
simplace <- initSimplace(SimplaceInstallationDir,SimplaceWorkDir,SimplaceOutputDir)
openProject(simplace, Solution)
parameter <- list(vTempLimit = 32)
simid <- createSimulation(simplace,parameter)
runSimulations(simplace)
closeProject(simplace)
result <- getResult(simplace,"DIAGRAM_OUT", simid);
resultlist <- resultToList(result)
resultlist$CURRENT.DATE
## End(Not run)

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