R Dataset / Package Stat2Data / Titanic
On this R-data statistics page, you will find information about the Titanic data set which pertains to Titanic. The Titanic data set is found in the Stat2Data R package. You can load the Titanic data set in R by issuing the following command at the console data("Titanic"). This will load the data into a variable called Titanic. If R says the Titanic data set is not found, you can try installing the package by issuing this command install.packages("Stat2Data") and then attempt to reload the data with the library() command. If you need to download R, you can go to the R project website. You can download a CSV (comma separated values) version of the Titanic R data set. The size of this file is about 62,279 bytes.
Titanic
Description
List and outcomes for passengers on the Titanic
Format
A dataset with 1313 observations on the following 6 variables.
Name | Passenger name |
PClass | Passenger class: * =missing, 1st , 2nd , or 3rd |
Age | Age (in years) |
Sex | female or male |
Survived | 1 =survived or 0 =died |
SexCode | 1 =female or 0 =male |
Details
The Titanic was a British luxury ocean liner that sank famously in the icy North Atlantic on its maiden voyage in April of 1912. Of the approximately 2200 passengers on board, 1500 died. The high death rate was blamed largely on the inadequate supply of lifeboats, a result of the manufacturer's claim that the ship was "unsinkable." A partial data set of the passenger list was compiled by Philip Hinde in his Encyclopedia Titanica and is given in this dataset.
Source
Philip Hinde's Encyclopedia Titanica, http://www.encyclopedia-titanica.org/. Data may also be downloaded from the Australasian Data and Story Library (OzDASL) athttp://www.statsci.org/data/general/titanic.html.
Dataset imported from https://www.r-project.org.