rwtbl_get_scen_folder: Map a scenario name to the original scenario folder

View source: R/rwtbl_helpers.R

rwtbl_get_scen_folderR Documentation

Map a scenario name to the original scenario folder

Description

rwtbl_get_scen_folder() provides the original file path to the scenario folder for the specified scenario name(s) (scenarios). If scenarios are not found in rwtblsmmry, a warning message is posted.

Usage

rwtbl_get_scen_folder(rwtblsmmry, scenarios)

Arguments

rwtblsmmry

A tbl_df of summarized RiverWare data; likely output from rw_scen_aggregate().

scenarios

A vector of scenario names to map to scenario folders.

Value

A vector of scenario folders; character(0) if none of the scenarios are found.

Examples

rwtbl_get_scen_folder(scen_data, "Most")
rwtbl_get_scen_folder(scen_data, c("Most", "2002"))


BoulderCodeHub/RWDataPlyr documentation built on May 8, 2023, 3:55 a.m.