titanic | R Documentation |
The sinking of the Titanic is one of the most infamous shipwrecks in history. On April 15, 1912, during her maiden voyage, the widely considered “unsinkable” RMS Titanic sank after colliding with an iceberg. Unfortunately, there weren’t enough lifeboats for everyone onboard, resulting in the death of 1502 out of 2224 passengers and crew. While there was some element of luck involved in surviving, it seems some groups of people were more likely to survive than others. In this challenge, we ask you to build a predictive model that answers the question: “what sorts of people were more likely to survive?” using passenger data (ie name, age, gender, socio-economic class, etc).
data(titanic)
An object of class "data.frame"
Survival
Ticket class
Sex
Age in years
number of siblings / spouses
number of parents / children
Ticket number
Passenger fare
Cabin Number
Type of cabin
Port of Embarkation
This data set sourced from https://www.kaggle.com/c/titanic/data?select=train.csv
data(titanic)
head(titanic)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.