Helper function: add site metadata

add_site_metadata(
  df,
  df_col_sitecode = "SiteCode",
  meta_site_path = package_file("shiny/basel/data/metadata/meta_site.csv")
)

Arguments

df

data frame containing at least a column "SiteCode"

df_col_sitecode

column in df containing site code (default: "SiteCode")

meta_site_path

Define path of "meta_site.csv" to be imported (default: sema.pilot:::package_file("shiny/basel/data/metadata/meta_site.csv"))

Value

returns input data frame with joined metadata