Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A common metric of health is the Body Mass Index (BMI), which is calculated simply as the weight in kilograms divided by the height in
A common metric of health is the Body Mass Index (BMI), which is calculated simply as the weight in kilograms divided by the height in meters squared ($BMI=kg/m^2$)
a. Using R: Create a function called `calculate_bmi()` that takes height in inches and weight in pounds as parameters and returns the BMI. Use the conversions $\small inches*0.035=m$ and $\small pounds*0.753592=kg$. Test the function with a height of 72" and a weight of 190 lbs. (15 points)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started