collate_one_dat: Collate one local Vortex output file into a data.frame

Description Usage Arguments Value Examples

View source: R/data_handling.R

Description

collate_one_dat parses one Vortex .dat or .stdat file, and returns the data within as one data.frame.

Usage

1
collate_one_dat(filename, runs, verbose = FALSE)

Arguments

filename

The fully qualified filename of a Vortex .dat or .stdat file

runs

The number of simulation runs

verbose

Progress messages, default: FALSE

Value

A data.frame with data from one .dat or .stdat file and population/scenario names as factors

Examples

1
2
3
4
5
# Pacioni et al. example files. See ?pacioni for more details.
require(vortexRdata)
pac.dir <- system.file('extdata', 'pacioni', package='vortexRdata')
f <- file.path(pac.dir, 'Pacioni_et_al_ST_Classic(Base).stdat')
one.st.classic <- collate_one_dat(f, 3)

vortexR documentation built on April 14, 2020, 7:23 p.m.