Herbert Barrientos
2016-06-24
Your next step to good health!
Service provided by the Health Corner
Overweight and obesity may cause a number of health problems.
Among the most common are:
The Body Mass Index, or BMI, is a value that is calculated by providing a your height and weight.
The BMI lands on one of three “weight index ranges” that tell you if your weight is normal (low risk), overweight (medium risk) or obese (high risk).
This information is crucial in determining various treatments that will help you maintain a good health.
The Health Corner presents you with the BMI Calculator, a novel online service to determine your health risk factor :
R code: https://github.com/hbarrien/DevelopingDataProducts
# Create the output data frame
bmidf <- data.frame(1, 2)
bmidf[1,1] <- "BMI"
# Hypothetical height=170 cm.; weight=65 kg.
ht <- 170; wt <- 65
# Perfom the BMI calculation and show results
bmi <- wt / (ht / 100)^2
bmidf[1,2] <- as.integer(bmi)
bmidf
X1 X2
1 BMI 22