Question: Q 1 0 . Which command calculates the body mass index ( BMI ) of characters in the starwars data.frame and stores the results in

Q10. Which command calculates the body mass index (BMI) of characters in the starwars data.frame and stores the results in a new variable called BMI? (Hint: BMI = mass/height^2 where mass is in kg and height is in m)
A. starwars %>% mutate(mass*height^2)
B. BMI <- starwars %>% mutate(mass/(height/100)^2)
C. starwars %>% mutate(BMI = mass/height^2)
D. starwars %>% mutate(BMI = mass/(height/100))
E. starwars %>% mutate(BMI = mass/(height/100)^2)

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!