Skip to contents

Looks up an existing parameter by name and type, returning a populated tibble row or NULL if not found.

Usage

create_existing_parameter(
  param_type,
  param_name,
  dummy_parameters,
  session_parameters = NULL
)

Arguments

param_type

Character string specifying the parameter type. Must be a value from eDataDRF::parameter_types_vocabulary().

param_name

Character string specifying the parameter name. Must be a value from eDataDRF::parameters_vocabulary().

dummy_parameters

Dataframe containing base parameters. Use eDataDRF::parameters_vocabulary() to obtain the full parameter list.

session_parameters

Optional dataframe containing session-specific parameters

Value

tibble with parameter information or NULL if not found

Examples

create_existing_parameter("Chemical", "Cadmium", eDataDRF::parameters_vocabulary())
#> # A tibble: 1 × 10
#>   PARAMETER_TYPE PARAMETER_TYPE_SUB          MEASURED_TYPE PARAMETER_NAME
#>   <chr>          <chr>                       <chr>         <chr>         
#> 1 Chemical       Homogeneous metal compounds Concentration Cadmium       
#> # ℹ 6 more variables: PARAMETER_NAME_SUB <chr>, INCHIKEY_SD <chr>,
#> #   PUBCHEM_CID <int>, CAS_RN <chr>, ENTERED_BY <chr>, PARAMETER_COMMENT <chr>