parse_var_src: Translate a var_src into a variable and a source

View source: R/mda_helpers.R

parse_var_srcR Documentation

Translate a var_src into a variable and a source

Description

Translate a var_src into a variable and a source

Usage

parse_var_src(var_src, out = c("var", "src"), use_names = FALSE)

Arguments

var_src

an underscore-separated combination of a variable and its data source

out

the parsed fields to return.

use_names

logical. Should names/rownames be attached to the vector/data.frame?

Value

if length(out)==1 a vector, else a data.frame


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