isPrimary: This function tests whether a commodity is a primary item.

View source: R/isPrimary.R

isPrimaryR Documentation

This function tests whether a commodity is a primary item.

Description

HACK (Michael): This is a hack from Josh, a list should be provided.

Usage

isPrimary(itemCode, primaryPattern = "^0")

Arguments

itemCode

The item code to be tested

primaryPattern

The regular expression pattern corresponds to primary commodities.

Value

logical, whether the item is a primary commodity


SWS-Methodology/faoswsProduction documentation built on March 21, 2023, 8:27 p.m.