taf2long: Convert TAF Table to Long Format

View source: R/taf2long.R

taf2longR Documentation

Convert TAF Table to Long Format

Description

Convert a table from TAF format to long format.

Usage

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

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


TAF documentation built on Jan. 23, 2023, 5:25 p.m.