Description Usage Arguments Value
View source: R/areaRemoveZeroConflict.R
The function examines two variables of a data.table object and helps to evaluate their feasible combinations. In particular if variable1 is supposed to be greater then variable2 - such as areaSown and areaHarvested- all the items characterized by variable1=0 and variable2>0 are marked as missingObservationFlag_variable1 and missingMethodFlag_variable1
1 2 | areaRemoveZeroConflict(data, value1, value2, observationFlag1, methodFlag1,
missingObservationFlag = "M", missingMethodFlag = "u")
|
data |
The data table object. |
value1 |
The column name of data corresponding to the first variable. |
value2 |
The column name of data corresponding to the second variable. |
observationFlag1 |
The column name of data containing the observation flag for the first variable. |
methodFlag1 |
The column name of data containing the method flag for the first variable. |
missingObservationFlag |
The flag (character value) which should be placed in the observation flag columns to signify a missing value. |
missingMethodFlag |
The flag (character value) which should be placed in the method flag columns to signify a missing value. |
No value is returned. However, the object "data" which was passed to this function is modified (some values are marked as missing if the have conflicting zeroes).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.