Learn R Programming

simplace (version 5.1.2)

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

Value

data.frame with scalar output columns

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

See Also

resultToList returns the output columns as list

Examples

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

Run the code above in your browser using DataLab