Function to compute and update yield
1 2 3 4 | computeYield(productionValue, productionObservationFlag, areaHarvestedValue,
areaHarvestedObservationFlag, yieldValue, yieldObservationFlag,
yieldMethodFlag, newMethodFlag, flagTable = faoswsFlag::faoswsFlagTable,
data, unitConversion = 1)
|
productionValue |
The column name corresponding to production value. |
productionObservationFlag |
The column name corresponding to the observation flag of production. |
areaHarvestedValue |
The column name corresponding to area harvested value. |
areaHarvestedObservationFlag |
The column name corresponding to the observation flag of area harvested. |
yieldValue |
The columne name corresponding to yield value. |
yieldObservationFlag |
The column name corresponding to the observation flag of yield. |
yieldMethodFlag |
The column name corresponding to the method flag for yield. |
newMethodFlag |
The character value that should be placed in the yieldMethodFlag column when yield is computed. |
flagTable |
see |
data |
The data.table object containing the data. |
unitConversion |
yield is computed as (production)/(area harvested)* (unit conversion). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.