O'Reilly logo

Unsupervised Learning with R by Erik Rodríguez Pacheco

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Basic exploration of the dataset

At this point, we have loaded the data into the R environment. This is the first major step, but we do not know much about this data yet. We will begin to gain initial understanding through some instructions to summarize the information.

Deliberately, we have left graphic versions for a later section of the chapter. In this section, the examples that we will do to return numbers and text; which, by the way are equally important tools as compared to their graphic expressions.

As a first step, directly from the console of R, we can begin verifying the basic features of the Iris dataset that we just loaded, for example its size:

# Retrieve or set the dimension of an object
dim(Iris) 

[1] 150   5

The instruction dim (Iris) ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required