getBalanceElementData: Get Balance Element Data

Description Usage Arguments Value

Description

This function extracts the balance element data from the database. This data specifies, for each measured item, the final element that it will be balanced to. For example, Flour of Wheat (item = 16) is placed into Food (element = 141).

Usage

1
getBalanceElementData(aupusParam, database = c("new", "old"), conn)

Arguments

aupusParam

A list of running parameters to be used in pulling the data. Typically, this is generated from getAupusParameter (see that function for a description of the required elements).

database

Whether to use the new or the old statistical working system.

conn

The RJDBS connection to the old working system. Only required if database = "old".

Value

A list of three items: specific, yearWildCard, and areaYearWildCard. Each of these elements has the same general structure: a data.table with zero to two dimension columns (area and year), the measured item, and then the element that item is balanced into.


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