A vectorised function to convert urea to blood urea nitrogen (BUN), By default the urea is measured in mmol/l but this can be changed to mg/dl by setting the optional units parameter to "US"
urea_to_bun(urea, units = "SI")
numeric vector of urea levels (mmol/l by default)
units for urea ("SI" for mmol/l, "US" for mg/dl)
numeric vector of blood urea nitrogen (BUN) levels in mg/dl
urea_to_bun(5.4)#>  15.12181