Titanic Passenger Survival Data Set

This data set provides information on the fate of passengers on the fatal maiden voyage of the ocean liner "Titanic", summarized according to economic status (class), sex, age and survival. Whereas the base R Titanic data found by calling data("Titanic") is an array resulting from cross-tabulating 2201 observations, these data sets are the individual non-aggregated observations and formatted in a machine learning context with a training sample, a testing sample, and two additional data sets that can be used for deeper machine learning analysis. These data sets are also the data sets downloaded from the Kaggle competition and thus lowers the barrier to entry for users new to R or machine learing.


titanic

titanic is an R package containing data sets providing information on the fate of passengers on the fatal maiden voyage of the ocean liner "Titanic", summarized according to economic status (class), sex, age and survival. These data sets are often used as an introduction to machine learning on Kaggle. More details about the competition can be found here, and the original data sets can be found here.

You can install:

  • the latest released version from CRAN with

    install.packages("titanic")
  • the latest development version from github with

    if (packageVersion("devtools") < 1.6) {
      install.packages("devtools")
    }
    devtools::install_github("paulhendricks/titanic")

If you encounter a clear bug, please file a minimal reproducible example on github.

library(titanic)
knitr::kable(head(titanic_train))
PassengerIdSurvivedPclassNameSexAgeSibSpParchTicketFareCabinEmbarked
103Braund, Mr. Owen Harrismale2210A/5 211717.2500S
211Cumings, Mrs. John Bradley (Florence Briggs Thayer)female3810PC 1759971.2833C85C
313Heikkinen, Miss. Lainafemale2600STON/O2. 31012827.9250S
411Futrelle, Mrs. Jacques Heath (Lily May Peel)female351011380353.1000C123S
503Allen, Mr. William Henrymale35003734508.0500S
603Moran, Mr. JamesmaleNA003308778.4583Q

News

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("titanic")

0.1.0 by Paul Hendricks, 2 years ago


https://github.com/paulhendricks/titanic


Report a bug at https://github.com/paulhendricks/titanic/issues


Browse source code at https://github.com/cran/titanic


Authors: Paul Hendricks [aut, cre]


Documentation:   PDF Manual  


CC0 license


Suggests dplyr


Suggested by dataCompareR.


See at CRAN