knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(christinehoogland)
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.