removeZeroYield: This function removes yield that bears the value zero and...

Description Usage Arguments Value

Description

By definition, yield can not be zero. When both area harvested and production are zero, it is a missing value.

Usage

1
2
removeZeroYield(data, yieldValue, yieldObsFlag, yieldMethodFlag,
  getSummary = FALSE)

Arguments

data

The dataset

yieldValue

The column corresponding to the value of yield

yieldObsFlag

The column corresponding to the observation status flag of yield

yieldMethodFlag

The column corresponding to the method flag of yield

getSummary

logic It is a logic parameter, if it is set to TRUE you can display on the console messages about how many items have been modified

Value

A data table where all entries with zero yield are replaced with NA.


SWS-Methodology/faoswsProcessing documentation built on June 19, 2019, 5:14 p.m.