R/calc_bmi.R

Defines functions calc_bmi

Documented in calc_bmi

#' Calculate BMI 
#'
#' @param weight weight in kg
#' @param height height in cm
#' @return value of BMI in kg/m2
#' @examples
#' calc_bmi(weight = 70, height = 160)
#' @export
calc_bmi <- function(weight, height) {
  return(weight / (height/100)^2)
}

Try the clinPK package in your browser

Any scripts or data that you put into this service are public.

clinPK documentation built on May 9, 2022, 9:06 a.m.