collect_data: Collect simulation data

Description Usage Arguments Note

View source: R/collect_data.R

Description

Gathers simulation data through time from multiple simulations.

Usage

1
2
3
4
5
6
collect_data(
  dir = ".",
  files = c("EI.dat", "SI.dat", "RI.dat"),
  parnames = c("hsymmetry", "ecosel"),
  parfile = "paramlog.txt"
)

Arguments

dir

Where the simulation folders are

files

Filenames of the data to extract

parnames

Optional names of the parameters to read and append

parfile

Name of the file where to read parameter values. Used only if parameter names are provided.

Note

It is important to not have the string "sim_" in the path leading to where the simulation folders are. This is because the function to collect data looks for simulation folders using the pattern sim_ in the full path of those folders. If sim_ appears somewhere else in the path than in the name of the simulation folders, all files in the directory containing the simulation folders will be interpreted as simulation folders, even if they are not, e.g. python scripts.


rscherrer/egstools documentation built on April 4, 2020, 1:40 a.m.