R code for the Kaggle competition on prediction of survivors on the Titanic