convertSugarCodes: Converts sugar codes 23511.01 and 23512 to 2351f

Description Usage Arguments Value

View source: R/convertSugarCodes.R

Description

This function harmonize sugar codes. Raw cane and beet sugar are considered as separate codes in some domain, like trade, because sugar raw can be traded as beet raw, cane raw or just raw (23511.01, 23512 or 2351f), but when one has to go from the processed product to the primary product, is not possible to know if a code 2351f has to be standardized to cane or beet, therefore in the standardization process cane and beet have to be considered as a unique code (2351f) This function makes checks and harmonize sugar codes

Usage

1

Arguments

data

the downloaded data from sua

p

The parameters for standardization. These parameters provide information about the columns of data and tree, specifying (for example) which columns should be standardized, which columns represent parents/children, etc.

Value

A data.table with the data fixed for sugar


SWS-Methodology/faoswsStandardization documentation built on Feb. 7, 2022, 5:05 a.m.