createTitanic: Create Titanic survival dataset

Description Usage Arguments Details Value See Also

Description

From source: "The titanic and titanic2 data frames describe the survival status of individual passengers on the Titanic. The titanic data frame does not contain information from the crew, but it does contain actual ages of half of the passengers. The principal source for data about Titanic passengers is the Encyclopedia Titanica. The datasets used here were begun by a variety of researchers. One of the original sources is Eaton & Haas (1994) Titanic: Triumph and Tragedy, Patrick Stephens Ltd, which includes a passenger list created by many researchers and edited by Michael A. Findlay."

Usage

1
2
createTitanic(file = getfilepath("titanic.rds"), write = TRUE,
  read = TRUE)

Arguments

file

character; path/filename to write data file to

write

logical; should the dataset be written to disk for later use? (default: TRUE)

read

logical; should we try to read the dataset from the specified location first? (default: TRUE)

Details

Task: formula(survived ~ . -name) # This includes life-boat information

Value

The dataset as a data.table

See Also

http://lib.stat.cmu.edu/S/Harrell/data/descriptions/titanic.html


jkrijthe/createdatasets documentation built on May 19, 2019, 12:44 p.m.