mishmash <- as_unit_ecotox(c("mg/L", "ppt w/v", "% w/v", "mmol/L"))
## Note that 'mmol/L' cannot be converted to 'ug/L'
## without a molar mass. It is returned as `NA`
mixed_to_single_unit(mishmash, "ug/L")
mishmash <- as_unit_ecotox(c("h", "sec", "mi", "dph"))
mixed_to_single_unit(mishmash, "h")
Run the code above in your browser using DataLab