fillCountrySpecificSeedRate: Fill country specific seed rates

Description Usage Arguments Value

View source: R/fillCountrySpecificSeedRate.R

Description

Fill country specific seed rates

Usage

1
2
3
fillCountrySpecificSeedRate(data, countryVariable = "geographicAreaM49",
  commodityVariable = "measuredItemCPC",
  countrySpecificData = getCountrySpecificSeedRate())

Arguments

data

The seed data.table, typically as produced by a call to getAreaData.

countryVariable

The column name of data that specifies the country code variable. This is needed to join with the table from the database.

commodityVariable

The column name of data that specifies the commodity code variable. This is needed to join with the table from the database.

countrySpecificData

A data.table with data describing seed rates for each country.

Value

No value is returned. Instead, seed rates (from countrySpecificData) are appended onto data.


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