Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create a new R object named classAgeGroup ( not a new column in titanic ) using the if else if else setup within a for
Create a new object named classAgeGroup not a new column in titanic using the if else if else setup within a for loop or using felse which: is equal to if Age is if Age is and Pclass if Age is and Pclass and if Age is and Pclass
Now create a new variable in the titanic dataset with the same setup as the variable you just created using the felse function. Tip: you may need to use nested calls to felso
Create a boxplot of Fare by classAgeGroup for the titanic data. Comment on your findings.
Create a boxplot of Age by the new variable you created in problem for the titanic data. Comment on your findings.
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