| Titanicp | R Documentation |
Data on passengers on the RMS Titanic, excluding the Crew and some individual identifier variables.
data(Titanicp)
A data frame with 1309 observations on the following 6 variables.
pclassa factor with levels 1st 2nd 3rd
surviveda factor with levels died survived
sexa factor with levels female male
agepassenger age in years (or fractions of a year, for children), a numeric vector; age is missing for 263 of the passengers
sibspnumber of siblings or spouses aboard, integer: 0:8
parchnumber of parents or children aboard, integer: 0:6
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.
The original R source for this dataset was compiled by Frank Harrell and Robert Dawson: https://biostat.app.vumc.org/wiki/pub/Main/DataSets/titanic.html, described in more detail in https://biostat.app.vumc.org/wiki/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.
data(Titanicp)
## maybe str(Titanicp) ; plot(Titanicp) ...
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.