ddim | R Documentation |
Show the data dimensions of a table.
ddim(x, reduce = FALSE)
x |
a data frame where the first columns are dimension variables and the last column is a measurement variable. |
reduce |
is whether to omit single-level dimensions. |
Dimension variables can include year, age, region, fleet, survey, or the like, generally an integer or string. The measurement variable can be catch, fishing mortality, maturity, weight, or the like, often a decimal.
x
can also be an FLR table in FLQuant
format.
Named vector showing the dimension names and number of levels.
unique
is the base function to extract the levels of a
dimension variable.
TAF-package
gives an overview of the package.
# Long table format, 8 years and 4 ages
ddim(catage.long)
# Some base R datasets
ddim(esoph[-5])
ddim(rev(warpbreaks))
ddim(rev(ToothGrowth))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.