Question: Write an R function to calculate the BMI (Body Mass Index), defined as the Weight in Kg divided by the squared height (in meter). weight

Write an R function to calculate the BMI (Body Mass Index), defined as the Weight in Kg divided by the squared height (in meter). weight kg BMI= ------ = ----- Height^2 m^2 There are two types of inputs: 1) Kg and m directly, and 2) foot (or inches) and pounds. Modify the program further to include the following information: after offering a BMI value, show the following text based on their corresponding ranges. BMI Description ----- ------------ <18.5 Underweight 18.5 to 25 Normal 25 to 30 Overweight >30 Obese

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!