verify_var_src: Check whether a var_src is listed in get_var_src_codes()

View source: R/mda_helpers.R

verify_var_srcR Documentation

Check whether a var_src is listed in get_var_src_codes()

Description

Check whether a var_src is listed in get_var_src_codes()

Usage

verify_var_src(var_var_src, src, on_fail = warning)

Arguments

var_var_src

may be either a variable, e.g. "doobs", or a var_src, e.g. "doobs_nwis".

src

a data source; optional if var_var_src is specified with both variable and source

on_fail

the function to apply to an information message (character) if the var_src is not valid

Value

a single TRUE if successful, else on_fail(msg) followed by a vector of T/F values with F for invalid var_srces


USGS-R/mda.streams documentation built on June 3, 2023, 8:43 a.m.