mass is in kg and height is in m) vars %>% mutate(mass height^2) <- starwars %>% mutate(mass/(height/100)^2) vars %>% mutate(BMI = mass/height^2) wars %>% mutate(BMI = mass/(height/100))

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter7: String Manipulation
Section: Chapter Questions
Problem 6RQ
icon
Related questions
Question
using rstudio
Mutate
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)
%3!
Transcribed Image Text:using rstudio Mutate 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) %3!
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,