Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use R to solve the follwoing questions: Question 1 The Titanic Passenger Survival Data Set provides information on the fate of passengers on the fatal

Use R to solve the follwoing questions:

image text in transcribed
Question 1 The Titanic Passenger Survival Data Set provides information on the fate of passengers on the fatal maiden voyage of the ocean liner \"Titanic." The dataset is available from the Department of the following commands. #INSERT YOUR ANSWER HERE a. Extract the columns sex, age, cabin and survived into a new data frame of the name 'titanicSubset'. #INSERT YOUR ANSWER HERE b. Use the aggregate() function to display the total number of survivors grouped by sex #INSERT YOUR ANSWER HERE c. Use the count() function in dplyr package to display the total number of passengers within each Ticket Class Pclass . #INSERT YOUR ANSWER HERE d. Answer the following graphically (using visualization): 1. What was the survival rates for females and males? 2. What was the age distribution on the Titanic? Hint: You can use ggplot2 #INSERT YOUR ANSWER HERE e)Use the for loop and if control statements to list the women's names, age 34 or more that embarked from S (Southampton), on the Titanic. #INSERT YOUR ANSWER HERE

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Finite Mathematics

Authors: Stefan Waner, Steven Costenoble

6th Edition

1285415604, 9781285415604

More Books

Students also viewed these Mathematics questions