Hi,
I have used the code below to try to bring my ST-Sim model results into R Studio as datasheets. The datasheets have the headers I expect, but they have no other data in them. In the code sample below I try to access state class and transition results, but I’ve tried accessing all the output tables, and the result is the same for each. Am I accessing the right tables and if so, what code do I need to get the results into R Studio? The library I’m working with includes 800 models with results output for 10 iterations, every 100 timesteps.
Thanks!
library(rsyncrosim)
programFolder = “C:/Program Files/SyncroSim”
Ses = session(programFolder)
module(Ses)
setwd(“C:/Users/kblankenship/Documents/aLANDFIRE/MODEL/STSM/Rsyncrosim/Dec19SimResultsCOPY”)
Lib = ssimLibrary(name=”MasterTEST19Dec2018-100yrresults”, model=”stsim”, session=Ses)
Prj = project(Lib, project=”BpSModels”)
Scn = scenario(Prj, “All Models”)
OutStateSheet = “STSim_OutputStratumState”
OutStateData = datasheet(Scn, OutStateSheet)
OutTransSheet = “STSim_OutputStratumTransition”
OutTransData = datasheet(Scn, OutTransSheet)