Learn R Programming

lares (version 4.10.6)

dft: Dataset: Titanic Sub-dataset por Examples

Description

Data generated from a Titanic dataset.

Usage

data(dft)

Arguments

Value

data.frame

Format

An object of class "data.frame"

PassengerId

Unique ID for each passenger (1-891)

Survived

Did the passenger survive? (TRUE, FALSE)

Pclass

Ticket class, from first to third (1, 2, 3)

Sex

Gender (female, male)

Age

Age for each passenger in years (0.42-80)

SibSp

Amount of siblings / spouses aboard the Titanic (0-8)

Parch

Amount of parents / children aboard the Titanic (0-6)

Ticket

Ticket IDs

Fare

Amount paid for passenger's ticket (0-512.3292)

Cabin

width of top of diamond relative to widest point (43-95)

Embarked

Port of Embarkation (43-95)

See Also

Other Dataset: dfr

Examples

Run this code
# NOT RUN {
data(dft)
head(dft)
# }

Run the code above in your browser using DataLab