I am trying to encode a python notebook into R from the Titanic Kaggle challenge. The notebook which I want to encode could be found at: https://www.kaggle.com/gunesevitan/t