bmi {lvmisc} | R Documentation |
Compute body mass index (BMI)
Description
bmi
calculates the BMI in kilograms per meter squared.
Usage
bmi(mass, height)
Arguments
mass , height |
A numerical vector with body mass and height data. |
Value
Returns a double vector with the element-wise body mass index (BMI).
See Also
Examples
mass <- sample(50:100, 20)
height <- rnorm(20, mean = 1.7, sd = 0.2)
bmi(mass, height)
[Package lvmisc version 0.1.2 Index]