xtab2long: Convert Crosstab Table to Long Format

View source: R/xtab2long.R

xtab2longR Documentation

Convert Crosstab Table to Long Format

Description

Convert a table from crosstab format to long format.

Usage

xtab2long(x, names = c("Year", "Age", "Value"))

Arguments

x

a data frame in crosstab format.

names

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

Value

A data frame with three columns.

See Also

catage.xtab and catage.long describe the crosstab and long formats.

xtab2taf and taf2long are the underlying functions that perform the conversion.

TAF-package gives an overview of the package.

Examples

xtab2long(catage.xtab, names=c("Year","Age","Catch"))


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