Datasets inside R
Welcome to the Clustering and classification chapter.
R has many (usually small) datasets already loaded in. There are also datasets included in the package installations. Some of the datasets are quite famous (like the Iris flower data) and they are frequently used for teaching purposes or to demonstrate statistical methods.
This week we will be using the Boston dataset from the MASS package. Let's see how it looks like!
Este ejercicio forma parte del curso
Helsinki Open Data Science
Instrucciones del ejercicio
- Load the
Bostondataset from MASS - Explore the
Bostondataset. Look at the structure withstr()and usesummary()to see the details of the variables. - Draw the plot matrix with
pairs()
Ejercicio interactivo práctico
Prueba este ejercicio y completa el código de muestra.
# access the MASS package
library(MASS)
# load the data
data("Boston")
# explore the dataset
# plot matrix of the variables