getCommodityClassification: Get Commodity Classification

Description Usage Arguments Value Examples

Description

This function classifies the cpc code in "Consumable, main", "Non-Consumable" or "Consumable, residual".

Usage

1

Arguments

cpcCodes

A character vector containing the CPC codes.

Value

A character vector whose ith element is the food classification corresponding to the passed CPC code in position i. If no valid cpc code is found, an NA is returned in this place.

Examples

1
2
3
4
## Not run: 
getCommodityClassification(c("0111", "23110", "F0020"))

## End(Not run)

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