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

View source: R/data_handling.R

collate_one_datR Documentation

Collate one local Vortex output file into a data.frame

Description

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

Usage

collate_one_dat(filename, runs, dec_sep = ".", verbose = FALSE)

Arguments

filename

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

runs

The number of simulation runs

dec_sep

Decimal separator (default ".")

verbose

Progress messages, default: FALSE

Value

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

Examples

# 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)

carlopacioni/vortexR documentation built on May 6, 2022, 12:07 p.m.