get_simulation_results {arena2r} | R Documentation |
This function reads all csv files inside the provided path and returns a data.frame with the simulation runs, consolidated. You should provide a path containing only csv files generated by Arena, with the same number of replications. I Suggest you to name your csv files after your scenarios.
get_simulation_results(source, source_type = "path")
source |
The path where csv files is stored, or a list coming from shiny. If you do not provide a value, I'll assume they're on your current working directory. |
source_type |
String that describes where the data is coming from. "path" stands for a path that contains all csv files. "shinyInput" stands for the list object returned by fileInput in the ShinyApp. |
a tidy dataframe with simulation results.
# Define de path where your csv files are:
path <- system.file("extdata", package = "arena2r")
simulation_results = get_simulation_results(path)
head(simulation_results)