Helper function: add label ("SiteName_ParaName_Unit_Method")

add_label(df, col_sitename = "SiteName",
  col_parametername = "ParameterName",
  col_parameterunit = "ParameterUnit", col_method = "Method_Org")

Arguments

df

data frame containing at least a columns "SiteName", "ParameterName", "ParameterUnit" and optionally "Method_Org" (if not existent no "Method_Org" will be available!)

col_sitename

column in df containing site name (default: "SiteName")

col_parametername

column in df containing parameter name (default: "ParameterName")

col_parameterunit

column in df containing parameter unit (default: "ParameterUnit")

col_method

column in df containing method code (default: "Method_Org")

Value

returns input data frame with added column "SiteName_ParaName_Unit_Method"