Learn R Programming

transplantr (version 0.2.0)

urea_to_bun: Convert urea to BUN

Description

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"

Usage

urea_to_bun(urea, units = "SI")

Arguments

urea

numeric vector of urea levels (mmol/l by default)

units

units for urea ("SI" for mmol/l, "US" for mg/dl)

Value

numeric vector of blood urea nitrogen (BUN) levels in mg/dl

Examples

Run this code
# NOT RUN {
urea_to_bun(5.4)
# }

Run the code above in your browser using DataLab