rwtbl_var_to_slot: Map a variable name to the RiverWare slot name

View source: R/rwtbl_helpers.R

rwtbl_var_to_slotR Documentation

Map a variable name to the RiverWare slot name

Description

rwtbl_var_to_slot() provides the RiverWare slot name that was used to create the specified variable name (varname). If varname is not found in rwtblsmmry, a warning message is posted.

Usage

rwtbl_var_to_slot(rwtblsmmry, varname)

Arguments

rwtblsmmry

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

varname

A vector of variable names to map to slot names.

Value

A character vector of the found slot names. character(0) if no variable names were found.

Examples

rwtbl_var_to_slot(scen_data, "peLt1000")
rwtbl_var_to_slot(scen_data, c("peLt1000", "peEocy"))


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