Skip to contents

Computes BMI from height and weight

Usage

compute_bmi(height, weight)

Arguments

height

HEIGHT value

It is expected that HEIGHT is in cm.

Permitted values

numeric vector

Default value

none

weight

WEIGHT value

It is expected that WEIGHT is in kg.

Permitted values

numeric vector

Default value

none

Value

The BMI (Body Mass Index Area) in kg/m^2.

Details

Usually this computation function can not be used with %>%.

Examples

compute_bmi(height = 170, weight = 75)
#> [1] 25.95156