flr2taf: Convert FLR Table to TAF Format

Description Usage Arguments Value Note See Also Examples

View source: R/flr2taf.R

Description

Convert a table from FLR format to TAF format.

Usage

1
flr2taf(x, colname = "Value")

Arguments

x

a table of class FLQuant.

colname

a column name to use if the FLR table contains only one row.

Value

A data frame in TAF format.

Note

FLR uses the FLQuant class to store tables as 6-dimensional arrays, while TAF tables are stored as data frames with a year column.

See Also

catage.taf describes the TAF format.

as.data.frame is a method provided by the FLCore package to convert FLQuant tables to a 7-column long format.

TAF-package gives an overview of the package.

Examples

1
2
3
4
5
6
7
8
x <- array(t(catage.xtab), dim=c(4,8,1,1,1,1))
dimnames(x) <- list(age=1:4, year=1963:1970,
                    unit="unique", season="all", area="unique", iter=1)
flr2taf(x)

x1 <- x[1,,,,,,drop=FALSE]
flr2taf(x1)
flr2taf(x1, "Juveniles")

TAF documentation built on April 7, 2021, 5:06 p.m.