getShareData: This function obtains the share data.

Description Usage Arguments Value

Description

This function obtains the share data.

Usage

1
2
getShareData(geographicAreaM49, measuredItemChildCPC, measuredItemParentCPC,
  timePointYearsSP, scaleShare = TRUE)

Arguments

geographicAreaM49

A character vector of area codes. The trees returned are specific to country and year; thus, providing this parameter limits which trees are pulled. If NULL, all are used.

measuredItemChildCPC

Child Commodity.

measuredItemParentCPC

Parent commodity.

timePointYearsSP

A character vector of years. See geographicAreaM49.

scaleShare

whether the share should be scaled from [0, 100] to [0, 1].

Value

A table of the share


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