This script covers data loading, exploration, visualization, statistical testing, and data preprocessing steps, adapted for R. You can run this script in an R environment to perform the exploratory data analysis.
You can find titanic.csv at: https://github.com/datasciencedojo/datasets/blob/master/titanic.csv
LGM