View source: R/landingsAnalyses.R
tabulateFisheries | R Documentation |
Tabulates fisheries based on custom cell definitions
tabulateFisheries(
data,
weightCol = "LiveWeightKG",
cellCols = c("Metier5", "quarter", "Area"),
complete = F
)
data |
data.frame containg fisheries data |
weightCol |
character() column in 'data' that contains catch weights |
cellCols |
character() vector of columns in 'data' defining cells |
complete |
logical() whether all combinations of the columns in cellCols should be tabulated, even if they contain no catch. |
A fishery will be decomposed into cells, within which total weight will be reported.
data.table
with the cells specified in cellCols tabulated by decreasing weight and with the columns 'weight', 'frac' and 'cumFrac' containing the weight in each cells and the fraction and cumulative fraction of total weight in that cell.
data(landings)
tabulateFisheries(landings)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.