getCommodityClassification: Get Commodity Classification

getCommodityClassificationR Documentation

Get Commodity Classification

Description

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

Usage

getCommodityClassification(cpcCodes)

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

## Not run: 
getCommodityClassification(c("0111", "23110", "F0020"))

## End(Not run)


SWS-Methodology/faoswsFood documentation built on April 6, 2022, 1:37 p.m.