Session 6-Titanic Presentation

Shikhar Kohli (PGP32117)
25th September, 2017

The Titanic dataset

  • The number of passengers
setwd("/Users/shikharkohli/code/DAM")
store.df <- read.csv('datasets/TitanicData.csv')
dim(store.df)[1]
[1] 889
  • The number of attributes for each passenger in the dataset
dim(store.df)[2]
[1] 8

How many passengers survived the sinking of the Titanic?

dim(subset(store.df, store.df$Survived == 1))[1]
[1] 340

Slide With Plot

plot of chunk unnamed-chunk-4