Titanic prediction R code [Kaggle.com]