Helper function: add site metadata

add_site_metadata(df, df_col_sitecode = "SiteCode",
  meta_site_path = system.file("shiny/basel/data/metadata/meta_site.csv",
  package = "aquanes.report"))

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: system.file("shiny/basel/data/metadata/meta_site.csv", package = "aquanes.report"))

Value

returns input data frame with joined metadata