get_simulation_results: Get Results from Arena CSV Files

Description Usage Arguments Value Examples

View source: R/functions.R

Description

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.

Usage

1
get_simulation_results(source, source_type = "path")

Arguments

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.

Value

a tidy dataframe with simulation results.

Examples

1
2
3
4
# Define de path where your csv files are:
path <- system.file("extdata", package = "arena2r")
simulation_results = get_simulation_results(path)
head(simulation_results)

arena2r documentation built on May 2, 2019, 3:47 p.m.