getExtractionRateData: Get Extraction Rate Data

Description Usage Arguments Details Value

Description

This function extracts the extraction rate data from the aupus data by grabbing the key columns of aupusData as well as the column corresponding to extraction rate (as specified by element41Num).

Usage

1
getExtractionRateData(aupusData, aupusParam)

Arguments

aupusData

The data returned from the function getAupusData

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

Details

Note: the old function queried the data.base for this data, but this new, simpler function just pulls directly from a table that has already been loaded into R.

Value

A data.table with the same key columns as aupusData and additional columns "Value_extraction" and "flagFaostat_extraction". This are the columns of aupusData corresponding to element 41.


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