sep.date: Separate the scenario and date in GCAM scenario tags.

View source: R/importgcam.R

sep.dateR Documentation

Separate the scenario and date in GCAM scenario tags.

Description

GCAM scenarios are named according to a user-supplied name and the date the scenario was run. The resulting format is "Scenario_Name,date=YYYY-DD?-MM?THH:MM:SS-hh:mm". ('X?' represents an X that might or might not be present. The user string and date are separated by exactly one space.) This function, therefore, splits the name string from the date. The scenario name is returned as is, and the date is converted to a date object. The results are returned as a list with elements 'scenario' and 'date'.

Usage

sep.date(scenstr)

Arguments

scenstr

The scenario string. This may be a vector, such as the 'scenario' column in a table of GCAM results

Value

list(scenario=Scenario_strings, date=Dates)


JGCRI/rgcam documentation built on July 2, 2022, 10:20 a.m.