SK0rnev
02 November, 2018
This is a documentation for the BMI calculator: https://skkk1972.shinyapps.io/BMI2018/.
The BMI (Body Mass Index) is used by the medical profession to quickly and simply determine a person's weight in regard to their height. It is a measure that uses your height and weight to work out if your weight is healthy.
The BMI calculation divides an adult's weight in kilograms by their height in metres squared. For example, A BMI of 25 means 25kg/m2.
From a straight forward calculation the BMI factor can be gained and gives a measure which can be used to determine if a person is underweight, of normal weight, overweight or obese.
World Health Organization divides BMI into the next grous
If your BMI is:
Fill in respective windows with your Height in centimetres and Weight in kilograms.
Click “Submit” button
You can see your result (BMI and your group) at the bottom of the right pannel
R code for Height=170cm and Weight=85kg
h <- 170
w <- 85
BMI <- w/(h/100)^2
BMI <- round(BMI,2)
if (BMI < 16) {category <- "Severe Thinness"}
if (BMI >=16 & BMI < 17) {category <- "Moderate Thinness"}
if (BMI >=17 & BMI < 18.5) {category <- "Mild Thinness"}
if (BMI >=18.5 & BMI < 25) {category <- "Normal"}
if (BMI >=25 & BMI < 30) {category <- "Overweight"}
if (BMI >=30 & BMI < 35) {category <- "Obese Class I"}
if (BMI >=35 & BMI < 40) {category <- "Obese Class II"}
if (BMI >=40) {category <- "Obese Class III"}
paste("Your BMI:", BMI, category)
[1] "Your BMI: 29.41 Overweight"