taf2long: Convert TAF Table to Long Format

Description Usage Arguments Value Note See Also Examples

View source: R/taf2long.R

Description

Convert a table from TAF format to long format.

Usage

1
taf2long(x, names = c("Year", "Age", "Value"))

Arguments

x

a data frame in TAF format.

names

a vector of three column names for the resulting data frame.

Value

A data frame with three columns.

Note

TAF stores tables as data frames, usually with a year column as seen in stock assessment reports. The long format is more convenient for analysis and producing plots.

See Also

catage.taf and catage.long describe the TAF and long formats.

long2taf converts a long table to TAF format.

TAF-package gives an overview of the package.

Examples

1
taf2long(catage.taf, names=c("Year","Age","Catch"))

TAF documentation built on April 7, 2021, 5:06 p.m.