Skip to contents

Titanic data set

Usage

titanic(col_select = NULL)

Arguments

col_select

(character vector): Columns to select.

Value

data frame

Examples

# \donttest{
titanic(c("PassengerId", "Age", "Pclass", "Fare")) |>
  head()
#> # A tibble: 6 × 4
#>   PassengerId   Age Pclass  Fare
#>         <dbl> <dbl>  <dbl> <dbl>
#> 1           1    22      3  7.25
#> 2           2    38      1 71.3 
#> 3           3    26      3  7.92
#> 4           4    35      1 53.1 
#> 5           5    35      3  8.05
#> 6           6    NA      3  8.46
# }