combinePTdata: (ISBM/CYER) Combine the data from multiple .pt files.

Description Usage Arguments Value Examples

Description

(ISBM/CYER) Combine the data from multiple .pt files.

Usage

1
combinePTdata(pt.list)

Arguments

pt.list

A list. The output from readPT.

Value

A list of three data frames named data.isbm.long, data.isbm.ages, and data.bper.long. Each data frame is in long format and has the same strucutre as the long format data frames produced by readPT, but each data frame includes a cwtstock column as all stocks are combined into the same data frame.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
data.path <- "../data/isbm"
pt.filenames <- list.files(data.path, pattern = ".PT$")
pt.filepaths <- paste(data.path, pt.filenames, sep="/")
pt.list <- readPT(pt.filepaths)
pt.list.long <- combinePTdata(pt.list)
names(pt.list.long)

## End(Not run)

MichaelFolkes/ctctools documentation built on May 7, 2019, 4:56 p.m.