Description Usage Arguments Value
Function to check whether the triplet (area harvested/production/yield) are calculated whereever possible.
1 2 3 | ensureIdentityCalculated(data, areaVar, yieldVar, prodVar, returnData = TRUE,
normalised = TRUE, denormalisedKey = "measuredElement",
getInvalidData = FALSE)
|
data |
The data.table to be saved back to the SWS. |
areaVar |
The column name corresponding to the area harvested. |
yieldVar |
The column name corresponding to the yield. |
prodVar |
The column name corresponding to produciton. |
returnData |
logical, whether the data should be returned. |
normalised |
logical, whether the data is normalised |
denormalisedKey |
optional, only required if the input data is not normalised.It is the name of the key that denormalises the data. |
getInvalidData |
logical, this will skip the test and extract the data that is invalid. |
If getInvalidData is FALSE, then the data is returned when the test is cleared, otherwise an error. If getInvalidData is TRUE, then the subset of the data that is invalid is returned.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.