fn_search_vardefs | R Documentation |
Retrieve variable or property data from RomDataSource$propvalues() or RomProperty$propvalues() style data frame provided by user. Original intended use is to search local variable definitions for a provided hydroid or varkey, but may apply to any propvalues() style dataframe that has a hydroid primary key field
fn_search_vardefs(config, var_defs_tmp)
config |
A list that contains either a target dh_variabledefinition hydroid or varkey. The varkey is given preference. Hydroids from other tables (dh_properties) may be provided but user must provide appropriate table in var_defs_tmp Definitions for these items are defined in the hydrotools readme. |
var_defs_tmp |
data frame to search, often those of variable definitions with hydroid and varkeys at least, but may also be a similar table from dh_properties or other table maybe generated through RomProperty$propvalues() |
data frame subset from var_defs_tmp based on the hydroid or varkey provided by user. Returns FALSE if nothing found
NA
#ds <- RomDataSource$new()
#fn_search_vardefs(config = list(hydroid = 1456),)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.