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. 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.



List and outcomes for passengers on the Titanic


A dataset with 1313 observations on the following 6 variables.

R project statistics dataset table
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


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.


Philip Hinde's Encyclopedia Titanica, http://www.encyclopedia-titanica.org/. Data may also be downloaded from the Australasian Data and Story Library (OzDASL) at


Dataset imported from https://www.r-project.org.

Title Authored on Content type
OpenIntro Statistics Dataset - dream August 9, 2020 - 12:25 PM Dataset
OpenIntro Statistics Dataset - winery_cars August 9, 2020 - 2:38 PM Dataset
R Dataset / Package HSAUR / toothpaste March 9, 2018 - 1:06 PM Dataset
R Dataset / Package HSAUR / pottery March 9, 2018 - 1:06 PM Dataset
R Dataset / Package HistData / Guerry March 9, 2018 - 1:06 PM Dataset
<iframe src="https://r-data.pmagunia.com/iframe/r-dataset-package-stat2data-titanic.html" frameBorder="0" width="100%" height="307px" />
Attachment Size
dataset-67757.csv 60.82 KB
Dataset License
GNU General Public License v2.0
Documentation License
GNU General Public License v2.0

This documentation is licensed under GPLv3 or later.