View source: R/StoxBaselineFunctions.R
DefineWeightConversionFactor | R Documentation |
Define weight conversion factors for calculating approximate weights for a product type (e.g. round fish) from the weight of other fish products, such as gutted fish.
DefineWeightConversionFactor(
processData,
DefinitionMethod = c("ResourceFile", "FDIR.VIII.2022"),
FileName = character(),
UseProcessData = F
)
processData |
|
DefinitionMethod |
'ResourceFile' or 'FDIR.VIII.2022'. See details. |
FileName |
path to resource file |
UseProcessData |
If TRUE, bypasses execution of function and returns existing 'processData' |
For DefinitionMethod 'ResourceFile': Definitions are read from a tab separated, UTF-8 encoded file with headers. Columns defined as:
Free-text description of the product
Identifier for the species that the conversion applies to
Identifier for the type of product that the conversion applies to
scalar value that weights for the given 'ProductType' can be multiplied with to approximate the desired product type (w.g. round fish).
For DefinitionMethod 'FDIR.VIII.2022', the table FDIR.factors.VIII.2022
will be used
Missing values for WeightFactor are interpreted as NA, and will result in NA for weights after conversion.
WeightConversionTable
ConvertWeightBiotic
for applying weight conversion to data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.