dft {lares} | R Documentation |
Titanic Dataset
Description
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. This dataset contains the details of a subset of the passengers on board (891 to be exact) taken from Kaggle's Titanic Train.csv.
Usage
data(dft)
Format
An object of class "data.frame"
- PassengerId
Unique ID for each passenger (1-891)
- Survived
Did the passenger survive? (TRUE, FALSE)
- Pclass
Ticket class, from first to third (1, 2, 3)
- Sex
Gender (female, male)
- Age
Age for each passenger in years (0.42-80)
- SibSp
Amount of siblings / spouses aboard the Titanic (0-8)
- Parch
Amount of parents / children aboard the Titanic (0-6)
- Ticket
Ticket IDs
- Fare
Amount paid for passenger's ticket (0-512.3292)
- Cabin
width of top of diamond relative to widest point (43-95)
- Embarked
Port of Embarkation (43-95)
Value
data.frame
See Also
Other Dataset:
dfr
Examples
data(dft)
head(dft)