O'Reilly logo

R Data Mining by Andrea Cirillo

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

Domain checks

As we previously saw, domain checks are the ones related to the range of variation of our attributes. How could we perform these checks employing the R language? Even if different possible ways are available, we are going to look at one which can be considered as straightforward, a combined use of the range and unique functions. We are going to use them in order to derive the variation domain of numerical and character variables.

Let's start by looking at the numerical variables, how can we have a look at their range?  We can employ the well named range function, which is going to give us back the minimum and maximum value within a sequence of numbers. For instance, applying it to a simple sequence from 1 to 10 will give us ...

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