Description Usage Arguments Value
Sometimes non-existing records (observation status flag and method flag and value all NA) are returned by the database, or can be created by denormalising the data. This function removes these records.
1 2 3 4 | removeNonExistingRecord(data, areaVar = "geographicAreaM49",
itemVar = "measuredItemCPC", elementVar = "measuredElement",
yearVar = "timePointYears", flagObsVar = "flagObservationStatus",
flagMethodVar = "flagMethod", valueVar = "Value")
|
data |
The data containing non-existing record |
areaVar |
The column name corresponding to the geographic area. |
itemVar |
The column name corresponding to the commodity item. |
elementVar |
The column name corresponding to the measured element. |
yearVar |
The column name corresponding to the year. |
flagObsVar |
The column name corresponding to the observation status flag. |
flagMethodVar |
The column name corresponding to the method flag. |
valueVar |
The column name corresponding to the value. |
Data with non-existing records omitted.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.