Learn R Programming

icesTAF (version 3.5-0)

taf2long: 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.

See Also

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

long2taf converts a long table to TAF format.

icesTAF-package gives an overview of the package.

Examples

Run this code
# NOT RUN {
taf2long(catage.taf, names=c("Year","Age","Catch"))

# }

Run the code above in your browser using DataLab