Learn R Programming

vcdExtra (version 0.6-5)

Titanicp: Passengers on the Titanic

Description

Data on passengers on the RMS Titanic, excluding the Crew and some individual identifier variables.

Usage

data(Titanicp)

Arguments

source

The original R source for this dataset was compiled by Frank Harrell and Robert Dawson: http://biostat.mc.vanderbilt.edu/twiki/pub/Main/DataSets/titanic.html, described in more detail in http://biostat.mc.vanderbilt.edu/twiki/pub/Main/DataSets/titanic3info.txt For this version of the Titanic data, passenger details were deleted, survived was cast as a factor, and the name changed to Titanicp to minimize confusion with other versions.

Details

There are a number of related versions of the Titanic data, in various formats. This version was derived from ptitanic in the rpart.plot package, modifying it to remove the Class 'labelled' attributes for some variables (inherited from Frank Harrell's titanic3 version) which caused problems with some applications, notably ggplot2. Other versions: Titanic is the 4-way frequency table of all 2201 people aboard the Titanic, including passengers and crew.

Examples

Run this code
data(Titanicp)
## maybe str(Titanicp) ; plot(Titanicp) ...

Run the code above in your browser using DataLab