getNewSubcategory: Get the subcategory to show for a new query

Description Usage Arguments

Description

A subcategory is defined as column that doesn't define the scenario, year, units, or value. When a new query is selected, the new subcategory should be the same as one in the previous query if it exists. If the new query does not have that subcategory, a new one is chosen based on number of unique values. If the subcategory contains only one unique element, it is not included.

Usage

1
getNewSubcategory(prj, scenario, query, oldSubcategory = NULL)

Arguments

prj

Project data structure.

scenario

Name of the scenario.

query

Name of the query.

oldSubcategory

The subcategory for the previous query.


JGCRI/GCAM-LAC-dashboard documentation built on May 28, 2019, 12:42 p.m.