ensureProductionBalanced: Function to check whether the production itdentity is...

Description Usage Arguments Value

Description

Function to check whether the production itdentity is satisfied.

Usage

1
2
ensureProductionBalanced(data, areaVar, yieldVar, prodVar, conversion,
  returnData = TRUE, normalised = TRUE, getInvalidData = FALSE)

Arguments

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.

conversion

The conversion factor for calculating production.

returnData

logical, whether the data should be returned.

normalised

logical, whether the data is normalised

getInvalidData

logical, this will skip the test and extract the data that is invalid.

Value

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.


SWS-Methodology/faoswsEnsure documentation built on May 9, 2019, 11:47 a.m.