MedUnits | R Documentation |
Table of conversions between Intertional Standard (SI) and US 'Conventional' Units for common medical measurements.
data(MedUnits)
A data frame with the following 5 variables.
Common Abbreviation (mostly missing)
Measurement Name
Conventional Unit
Conversion factor
SI Unit
Medical laboratories and practitioners in the United States use one set of units (the so-called 'Conventional' units) for reporting the results of clinical laboratory measurements, while the rest of the world uses the International Standard (SI) units. It often becomes necessary to translate between these units when participating in international collaborations.
This data set provides constants for converting between SI and US 'Conventional' units.
To perform the conversion from SI units to US 'Conventional' units do:
Measurement in ConventionalUnit
=
(Measurement in SIUnit
) / Conversion
To perform conversion from 'Conventional' to SI units do:
Measurement in SIUnit
=
(Measurement in ConventionalUnit
) * Conversion
https://globalrph.com/medical/conventional-units-international-units/
The function ConvertMedUnits
automates the
conversion task.
data(MedUnits)
# Show available conversions
MedUnits$Measurement
# Utility function
matchUnits <- function(X) MedUnits[grep(X, MedUnits$Measurement),]
# Convert SI Glucose measurement to 'Conventional' units
GlucoseSI = c(5, 5.4, 5, 5.1, 5.6, 5.1, 4.9, 5.2, 5.5) # in SI Units
GlucoseUS = GlucoseSI / matchUnits("Glucose")$Conversion
cbind(GlucoseSI, GlucoseUS)
# Also consider using ConvertMedUnits()
ConvertMedUnits(GlucoseSI, "Glucose", to="US")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.