View source: R/StoxReportFunctions.R
ReportFdaLandings | R Documentation |
Report landings in partitions of the fisheries.
ReportFdaLandings(
StoxLandingData,
GroupingVariables = character(),
Decimals = integer(),
Unit = RstoxData::getUnitOptions("mass", conversionRange = c(1, 1e+12))
)
StoxLandingData |
|
GroupingVariables |
Columns of 'StoxBioticData' and 'StoxLandingData' that partitions the fisheries. If not provided, a single row for all landings will be produced. |
Decimals |
integer specifying the number of decimals to report for 'LandedRoundWeight' and 'WeightOfSampledCatches'. Defaults to 0. |
Unit |
unit for the weights 'LandedRoundWeight' and 'WeightOfSampledCatches'. Defaults to kg. |
Landings are reported partitioned on the provided 'GroupingVariables'.
Landings are sorted by decreasing weight, except if the column 'CatchDate' is used as GroupingVariable. In that case Landings are sorted by increasing date, after sorting on other Grouping variables.
Rounding of numbers according to the argument 'Decimals' is done with round
,
so that negative numbers specify rounding to powers of ten, and rounding of the digit 5 is towards the even digit.
The units considered valid for weights are those listed for quantity 'mass' in StoxUnits
ReportFdaLandingData
landingsreport <- RstoxFDA::ReportFdaLandings(RstoxFDA::StoxLandingDataExample,
GroupingVariables = c("Area"), Unit="ton")
landingsreport$FisheriesLandings
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.