Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

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 Biostatistics at the Vanderbilt University School of Medicine (litpszllbiostatappyumc.org/wiki/pub/Main/DataSets/titanic3.csv)i_n several formats. store the Titanic Data Set titanic_train using 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 with AI-Powered Solutions

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

Step: 2

blur-text-image

Step: 3

blur-text-image

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

Fundamentals Of Financial Management

Authors: Eugene F. Brigham, Joel F. Houston

16th Edition

0357517571, 978-0357517574

Students also viewed these Mathematics questions