Description Usage Arguments Value
Certain datasets are extracted from the database in three chunks: country/year specific data, country specific data, and generic data (applying to all countries/years). The most specific data available should be used when available, otherwise a more general value should be used. This function collapses the three different datasets (supplied in listData) into one final dataset. Note that all three datasets should have the same columns except for the key columns which provide the level of detail (i.e. item, item/country, and item/country/year).
1 | collapseSpecificData(aupusParam, listData, verbose = FALSE)
|
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). |
listData |
A list of three data.tables, typically as obtained from the functions getShare, getBalanceElementData, or getRatioData. This list is of length 3 with data.tables as elements (specific, yearWildCard, and areaYearWildCard). Each data.table contains information at a different level of specificity. |
verbose |
Whether the output should be printed. |
Returns a single data.table derived by condensing the listData list into one dataset.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.