computeYield: Function to compute and update yield

Description Usage Arguments

Description

Function to compute and update yield

Usage

1
2
3
4
computeYield(productionValue, productionObservationFlag, areaHarvestedValue,
  areaHarvestedObservationFlag, yieldValue, yieldObservationFlag,
  yieldMethodFlag, newMethodFlag, flagTable = faoswsFlag::faoswsFlagTable,
  data, unitConversion = 1)

Arguments

productionValue

The column name corresponding to production value.

productionObservationFlag

The column name corresponding to the observation flag of production.

areaHarvestedValue

The column name corresponding to area harvested value.

areaHarvestedObservationFlag

The column name corresponding to the observation flag of area harvested.

yieldValue

The columne name corresponding to yield value.

yieldObservationFlag

The column name corresponding to the observation flag of yield.

yieldMethodFlag

The column name corresponding to the method flag for yield.

newMethodFlag

The character value that should be placed in the yieldMethodFlag column when yield is computed.

flagTable

see faoswsFlagTable.

data

The data.table object containing the data.

unitConversion

yield is computed as (production)/(area harvested)* (unit conversion).


mkao006/sws_util documentation built on May 23, 2019, 1:06 a.m.