Just like during the last practical, we will start by opening a new R-script (select from the top-menu in RStudio: File/New/R Script) and exploring the dataset.
Execute the following command in R to load the titanic dataset:
If everything went well, an object titanic should have been loaded in the global environment.
Explore the dataset using the following you learned in practical 1 (e.g.
names()). This should become standard practice when you get a new dataset.
How many observations does the dataset contain?
|The dataset contains||observations|