ComenzarEmpieza gratis

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

Ver curso

Instrucciones del ejercicio

  • Load the Boston dataset from MASS
  • Explore the Boston dataset. Look at the structure with str() and use summary() 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

Editar y ejecutar código