Learn R Programming

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.

Installation

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.

API

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

Copy Link

Version

Install

install.packages('titanic')

Monthly Downloads

9,930

Version

0.1.0

License

CC0

Issues

Pull Requests

Stars

Forks

Maintainer

Paul Hendricks

Last Published

August 31st, 2015

Functions in titanic (0.1.0)

titanic_train

Titanic train data.
titanic_test

Titanic test data.
titanic

titanic: Titanic Passenger Survival Data Set
titanic_gender_class_model

Titanic gender class model data.
titanic_gender_model

Titanic gender model data.