flr2taf | R Documentation |
Convert a table from FLR format to TAF format.
flr2taf(x, colname = "Value")
x |
a table of class |
colname |
a column name to use if the FLR table contains only one row. |
A data frame in TAF format.
FLR uses the FLQuant
class to store tables as 6-dimensional arrays,
while TAF tables are stored as data frames with a year column.
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.
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.