This function manually sets analyte aliases by passing a dataframe with 2 columns: alias_AnalyteName, which is the analyte you'd like to turn into an alias and primary_AnalyteName which is the target analyte for which you are creating an alias.

manual_set_analyte_aliases(tenant_id, master_dataframe)

Arguments

tenant_id

A single numeric value representing the tenant ID.

master_dataframe

A 2-column dataframe containing alias_AnalyteName and target_AnalyteName. alias_AnalyteName: The EnviroData name of the alias analyte you want to move. target_AnalyteName: The EnviroData name of the primary alias to merge into. The alias in each row will be set to an alias of this analyte.

Value

void

Examples

  # Example master_dataframe
  master_dataframe_example <- data.frame(
    alias_AnalyteName = c("AnalyteAlias1", "AnalyteAlias2"),
    target_AnalyteName = c("TargetAnalyte1", "TargetAnalyte2")
  )

  # Example tenant_id
  tenant_id_example <- 12345

  # Call the manual_set_analyte_aliases function
  manual_set_analyte_aliases(tenant_id = tenant_id_example, master_dataframe = master_dataframe_example)