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

Down Chevron

Install

install.packages('titanic')

Monthly Downloads

7,173

Version

0.1.0

License

CC0

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

August 31st, 2015

Functions in titanic (0.1.0)