get_var_src_codes: Retrieve the var and src codes for mda.streams

View source: R/get_var_src_codes.R

get_var_src_codesR Documentation

Retrieve the var and src codes for mda.streams

Description

Facilitates quick filtering and selecting

Usage

get_var_src_codes(..., out, drop = TRUE)

Arguments

...

a list of unnamed arguments to pass to dplyr::filter_

out

a list of arguments to pass to dplyr::select_

drop

logical. if the filtering & selection lead to a data.frame whose dimensions would ordinarily be dropped using z[x,y] location, should the dimensions be dropped?

Examples

get_var_src_codes()
unique(get_var_src_codes(var=="baro", out='var'))
get_var_src_codes(var=="baro", out='var', drop=FALSE)
get_var_src_codes(var=="baro", out=c('var','var_descrip'))
get_var_src_codes(var=="baro", out=c('var','var_descrip'), drop=FALSE)
get_var_src_codes(out=c('var','var_src','p_code'))
get_var_src_codes(src_type=="data", !is.na(p_code), 
  out=list('var','var_src','p_code', 'src_type'))

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