R/import_data_basel.R
add_label.Rd
Helper function: add label ("SiteName_ParaName_Unit_Method")
add_label(df, col_sitename = "SiteName", col_parametername = "ParameterName", col_parameterunit = "ParameterUnit", col_method = "Method_Org")
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") |
returns input data frame with added column "SiteName_ParaName_Unit_Method"