combine_datasets: Combine extracted simulation datasets

Description Usage Arguments Value

View source: R/combine_datasets.R

Description

This function extracts data from different input paths and combine them. It is a wrapper around extract_from_simulations.

Usage

1
combine_datasets(inpaths, vars, params, merge_factor, merge_levels)

Arguments

inpaths

Where the simulation outputs are to be found. Need several of them, of course.

vars

What variables through time to extract from simulation output data files?

params

What parameter values to record for each simulation?

merge_factor

The name of the column to add to the master data frame; the factor that differs between the different datasets that are combined.

merge_levels

The levels of that factor. Should be of the same length as inpaths.

Value

A data frame with individual simulationa in rows, and in columns the variables of interest at each time point, as well as the values of the selected parameters.


rscherrer/epianalysis documentation built on May 26, 2019, 2:32 p.m.