titanic.Rd
A dataset describing the passengers of the Titanic and their survival
data("titanic")
A data frame with 1309 observations and the following 5 variables.
Survived
Factor. Whether one survived or not
Pclass
Factor. Passenger class
Sex
Factor. Sex
Age
Numeric vector. Age
Embarked
Factor. Port of embarkation
data(titanic)
str(titanic)
#> spc_tbl_ [1,309 × 5] (S3: spec_tbl_df/tbl_df/tbl/data.frame)
#> $ Survived: Factor w/ 2 levels "No","Yes": 2 2 1 1 1 2 2 1 2 1 ...
#> $ Sex : Factor w/ 2 levels "female","male": 1 2 1 2 1 2 1 2 1 2 ...
#> $ Pclass : Factor w/ 3 levels "1st","2nd","3rd": 1 1 1 1 1 1 1 1 1 1 ...
#> $ Age : num [1:1309] 29 0.917 2 30 25 ...
#> $ Embarked: Factor w/ 3 levels "Cherbourg","Queenstown",..: 3 3 3 3 3 3 3 3 3 1 ...