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<U+2019>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. This dataset contains the details of a subset of the passengers on board (891 to be exact) taken from Kaggle's Titanic Train.csv.
data(dft)
data.frame
An object of class "data.frame"
Unique ID for each passenger (1-891)
Did the passenger survive? (TRUE, FALSE)
Ticket class, from first to third (1, 2, 3)
Gender (female, male)
Age for each passenger in years (0.42-80)
Amount of siblings / spouses aboard the Titanic (0-8)
Amount of parents / children aboard the Titanic (0-6)
Ticket IDs
Amount paid for passenger's ticket (0-512.3292)
width of top of diamond relative to widest point (43-95)
Port of Embarkation (43-95)
Other Dataset:
dfr
# NOT RUN {
data(dft)
head(dft)
# }
Run the code above in your browser using DataLab