GCAMFigs: Constructs figure generating objects

Description Usage Arguments Details Value

Description

An rgcam project file is restructured so that queries are the top-layer of a list, with entry holding query data for all scenarios.

Usage

1
GCAMFigs(proj, transf)

Arguments

proj

rgcam project, a list of scenarios

transf

list of functions, each named for query it restructures

Details

Any queries that have a 'GHG' column are separated by GHG. See breakoutGHGs() for details.

The processed project data is assigned class according to the queries it holds. See system.file("classes.csv") for what queries compose each class. Currently throws an error if the project data is assigned more than 1 query-class because this would disrupt method dispatch.

The final step is to calculate whatever additional queries are possible given those already contained in project data. For example, in the land class, if queries "Land Allocation" and "Ag Production by Crop Type" are present, "Average Yield" will be calculated automatically. See calculateQueries() in script calculations.R for the queries that can be calculated for each class.

Value

list of dataframes


xavier-gutierrez/validation_figures documentation built on May 24, 2019, 9:58 p.m.