dataRestructure: Pulls queries to top level of project data

Description Usage Arguments Details Value

Description

Used in constructor() to initialize figure generation object. Native rgcam project data is structured a list of scenarios, where each scenario is a list of queries. Project data needs to be structured as a list of queries, where each query is a single dataframe. Query data for all scenarios needs to be saved as a single data.frame in order to produce plots that compare scenarios.

Usage

1
dataRestructure(proj, transf, scenarios, queries)

Arguments

proj

rgcam project, a list of scenarios

transf

list of functions, each named for query it restructures

scenarios

character vector, scenarios in project data

queries

character vector, queries in project data

Details

User-provided transformation functions can aggregate over unnecessary columns, reformat columns (eg: split on "_"), or map the keys in a column to a different set of keys with a mapping file.

Value

list of dataframes


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