flr2taf {TAF} | R Documentation |
Convert FLR Table to TAF Format
Description
Convert a table from FLR format to TAF format.
Usage
flr2taf(x, colname = "Value")
Arguments
x |
a table of class |
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
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")
[Package TAF version 4.2.0 Index]