areaRemoveZeroConflict: Remove Zero Conflicts

Description Usage Arguments Value

View source: R/areaRemoveZeroConflict.R

Description

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

Usage

1
2
areaRemoveZeroConflict(data, value1, value2, observationFlag1, methodFlag1,
  missingObservationFlag = "M", missingMethodFlag = "u")

Arguments

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.

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).


SWS-Methodology/faoswsSeed documentation built on Nov. 21, 2020, 5:43 p.m.