Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
