bmi: Calculate Body Mass Index

Description Usage Arguments Value Examples

View source: R/bmi.R

Description

Calculate Body Mass Index

Usage

1
2
bmi(weight.kg = NULL, height.m = NULL, bmi = NULL, categ = FALSE,
  labels = FALSE)

Arguments

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 categ == TRUE, logical indicating whether to return factor with labels (who classification)

Value

a vector of body mass index

Examples

1
2
3
4
5
## 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)

lbraglia/yapomif documentation built on May 20, 2019, 11:26 p.m.