knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(christinehoogland)

Function bmi

This function returns the Body Mass Index of an individual (https://en.wikipedia.org/wiki/Body_mass_index).

The function must take 2 parameters, the mass in kg and the height in meter. It returns the result of the operation mass/(height * height).

bmi(mass = 80, height = 1.80)
bmi(mass = NA, height = 1.80)
bmi(mass = 80, height = NA)
bmi(mass = NA, height = NA)


choogland/christinehoogland.pkg documentation built on May 7, 2022, 12:05 a.m.