powered by
Convert a table from crosstab format to long format.
xtab2long(x, names = c("Year", "Age", "Value"))
A data frame with three columns.
a data frame in crosstab format.
a vector of three column names for the resulting data frame.
catage.xtab and catage.long describe the crosstab and long formats.
catage.xtab
catage.long
xtab2taf and taf2long are the underlying functions that perform the conversion.
xtab2taf
taf2long
icesTAF-package gives an overview of the package.
icesTAF-package
xtab2long(catage.xtab, names=c("Year","Age","Catch"))
Run the code above in your browser using DataLab