xtab2taf: Convert Crosstab Table to TAF Format

View source: R/xtab2taf.R

xtab2tafR Documentation

Convert Crosstab Table to TAF Format

Description

Convert a table from crosstab format to TAF format.

Usage

xtab2taf(x, colname = "Year")

Arguments

x

a data frame in crosstab format.

colname

name for first column.

Value

A data frame in TAF format.

Note

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

See Also

catage.xtab and catage.taf describe the crosstab and TAF formats.

taf2xtab converts a TAF table to crosstab format.

TAF-package gives an overview of the package.

Examples

xtab2taf(catage.xtab)


TAF documentation built on March 31, 2023, 6:51 p.m.