subsetAupus: Subset AUPUS Data

Description Usage Arguments Value

Description

This function takes as input the list of data.table data as generated by getAupusDataset and subsets it based on specific item (commodity) codes. This can be useful for analyzing smaller datasets and understanding what the algorithm is doing. Note that if the particular item code(s) have any children, those values (and their children, and so on) will also be included.

Usage

1
subsetAupus(aupusData, parentKeys, aupusParam)

Arguments

aupusData

The AUPUS dataset, typically as generated by getAupusDataset. This contains a list of 8 data.tables with the data of interest.

parentKeys

A numeric vector containing the item code(s) to filter on.

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).

Value

An object of the same structure as aupusData, but with each individual data.table filtered according to the set of keys provided.


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