
Get Unique Parameter-Unit Combinations
get_unique_units_df.RdGet Unique Parameter-Unit Combinations
See also
Other unit_checking:
check_for_unique_units()
Examples
df <- data.frame(
PARAM = c(
"ALB","ALT","AST","CR","TBIL",
"ALB","CR","TBIL","ALT","AST"),
UNIT = c(
"g/L","U/L","U/L","umol/L","umol/L",
"U/L","μmol/L","μmol/L","IU/L","IU/L")
)
get_unique_units_df(df$PARAM, df$UNIT)
#> PARAM UNIT
#> 1 ALB g/L
#> 2 ALT U/L
#> 3 AST U/L
#> 4 CR umol/L
#> 5 TBIL umol/L
#> 6 ALB U/L