3. Probability: Practical 3
Data Exploration
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:
source('http://horizon.science.uva.nl/public/VVA/titanic_passenger.r')
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. summary()
, str()
, head()
, class()
, dim()
, names()
). This should become standard practice when you get a new dataset.
How many observations does the dataset contain?
The dataset contains | observations |
Unlock full access