Learn R Programming

vortexR (version 1.1.7)

collate_one_dat: 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, 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

Run this code
# NOT RUN {
# 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)
# }

Run the code above in your browser using DataLab