bmi: Calculate Body Mass Index

View source: R/bmi.R

bmiR Documentation

Calculate Body Mass Index

Description

Calculate Body Mass Index

Usage

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


## 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/lbscorer documentation built on Feb. 11, 2024, 11:04 a.m.