getYieldCodes: Get Yield Codes

Description Usage Arguments Value

Description

This function takes a vector of CPC codes and returns a data.table with the corresponding production/yield/area harvested codes for those commodities.

Usage

1
getYieldCodes(itemCode)

Arguments

itemCode

A character vector of CPC codes.

Value

A data.table with the passed CPC codes as well as the corresponding element codes for the production, yield, and area harvested elements. In addition, "factor" is returned, and this satisfies the formula

Yield = Production / (Area Harvested) * factor


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