View source: R/getProductionFormula.R
getProductionFormula | R Documentation |
This function provides the element codes (for production, yield, and output) and conversion factor which correspond to the particular item code of interest.
getProductionFormula(itemCode, itemVar = "measuredItemCPC", warn = FALSE)
itemCode |
The cpc code providing the commodity of interest. This should be a character string. |
itemVar |
The name of the item variable column. |
warn |
Logical. If FALSE, an error is thrown for missing element types. If TRUE, it is simply a warning. |
A data.table object providing the relevant element codes. In some cases, there may be multiple rows, as it is possible to have multiple elements which hold production, yield, and output data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.