bmi | R Documentation |
Calculate Body Mass Index
bmi(
weight.kg = NULL,
height.m = NULL,
bmi = NULL,
categ = FALSE,
labels = FALSE
)
weight.kg |
weight in kg |
height.m |
height in m |
bmi |
body mass index already computed |
categ |
logical indicating whether to return a factor (who classification) |
labels |
if |
a vector of body mass index
## Simple calculation
bmi(w = 85, h = 1.85)
## Who classes without or with labels
bmi(b = 24, categ = TRUE)
bmi(b = 27, categ = TRUE, labels = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.