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, from = NULL, to = NULL)

Arguments

result

handle to the data container returned by getResult

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()
parameter$vTempLimit <- 32
createSimulation(simplace,parameter)
runSimulations(simplace)
simulationlist <-getSimulationIDs(simplace)
result <- getResult(simplace,"DIAGRAM_OUT", simulationlist[[1]]);
closeProject(simplace)
resultframe <- resultToDataframe(result)
resultframe[3,]
## End(Not run)

[Package simplace version 4.3.1 Index]