resultToDataframe {simplace}R Documentation

Convert result to dataframe

Description

All scalar output columns are transformed to appropriate R objects and then glued together in a dataframe. Array outputs columns are ignored.

Usage

resultToDataframe(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

data.frame with scalar output columns

See Also

resultToList returns the output columns as list

Examples

## Not run: 
simplace <- initSimplace(SimplaceInstallationDir,SimplaceWorkDir,SimplaceOutputDir)
openProject(simplace, Solution)
parameter <- list(vTempLimit = 32)
simid <- createSimulation(simplace,parameter)
runSimulations(simplace)
result <- getResult(simplace,"DIAGRAM_OUT", simid);
closeProject(simplace)
resultframe <- resultToDataframe(result)
resultframe[3,]
## End(Not run)

[Package simplace version 5.0.13 Index]