R/odmx_main.R
simplifyColumns.Rd
merge VariableCode and Unit, use '<', '>' or '=' as CensorCode
simplifyColumns(x, short.codes = TRUE)
x | data frame with columns |
---|---|
short.codes | if |
x <- data.frame(VariableCode = c("A", "B"), UnitsAbbreviation = c("mg/l", "ug/l"), CensorCode = c("lt", "nc")) simplifyColumns(x)#> VariableCode UnitsAbbreviation CensorCode #> 1 A_mg/l mg/l < #> 2 B_ug/l ug/l