fcl2cpc: FCL to CPC Codes

Description Usage Arguments Value Examples

Description

This function maps FCL to CPC codes using the table defined within the SWS.

Usage

1
fcl2cpc(fclCodes, version = "latest")

Arguments

fclCodes

A character vector containing the FCL codes.

version

character. This specifies the version of the conversion tables between fcl and cpc. To use the latest version, you can use 'latest'. The other tables available are '2.1preliminary', the default one and '2.1' which is the update and official one.

Value

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

Examples

1
2
3
4
5
## Not run: 
fcl2cpc(c("0015", "0016", "0265"))
fcl2cpc(cpc2fcl(c("0111", "23110", "01447")))

## End(Not run)

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