O'Reilly logo

R Machine Learning Essentials by Michele Usuelli

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

Some useful R packages

There are different R packages that provide users with general-purpose functions and specific techniques. This chapter introduces two powerful general purpose packages: data.table and plyr.

Some packages are already installed in the basic version of R. However, in order to use data.table and plyr, we need to download them from the official CRAN repository using install.packages. Let's start with data.table, which is a package that provides additional tools used to deal with data frames:

install.packages('data.table')

If the command doesn't work, you can specify the repository:

install.packages(
  pkgs = 'data.table',
  repos = 'http://cran.us.r-project.org'
)

After installing the package, we need to load it in order to use its functions. ...

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