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

Description Usage Arguments Value

View source: R/mda_helpers.R

Description

Check whether a var_src is listed in get_var_src_codes()

Usage

1
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 Dec. 19, 2017, 10:25 p.m.