getAupusParameter: Get AUPUS Parameters

Description Usage Arguments Value

Description

This function gets all the parameters in order to query the data, and either assigns these parameters to the global environment of returns them as a list.

Usage

1
getAupusParameter(areaCode, assignGlobal = TRUE, yearsToUse = NULL)

Arguments

areaCode

A character value giving the country code of the country of interest.

assignGlobal

logical, default to FALSE, in which case a list is returned. If TRUE, then the result will be assigned globally.

yearsToUse

If NULL, then all available years (as determined by GetCodeList) will be used. Otherwise, a vector of years should be provided and these years alone will be included.

Value

If assignGlobal is TRUE, nothing is returned but 5 objects are written to the global environment: areaCode, itemCode, elementCode, year, and keyNames. The first four of these variables each define a dimension for slicing the data, and the fifth element is a list of arguments to processing functions. If assignGlobal is false, these 5 objects are returned in a named list.


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