Learn R Programming

twoxtwo (version 0.1.0)

titanic: Expanded Titanic dataset

Description

This data is based on the Titanic dataset. Unlike the version in the datasets package, the data here is expanded to the observation-level rather than cross-tabulated.

Usage

titanic

Arguments

Format

A data frame with 2201 rows and 4 variables:

  • Class: Passenger class ("1st", "2nd", "3rd") or crew status ("Crew")

  • Crew: Logical as to whether or not a crew member (TRUE) or not (FALSE)

  • Sex: Sex of individual ("Male" or "Female")

  • Age: Categorized age ("Adult" or "Child")

  • Survived: Whether or not individual survived ("Yes" or "No")

Examples

Run this code
# NOT RUN {
head(titanic)
# }

Run the code above in your browser using DataLab