How to do the Titanic Kaggle competition in R - Part 1