The following table lists the packages used in the book by chapter:
Chapter |
Package, in order of appearance |
Chapter 1, Extract, Transform, and Load |
|
Chapter 2, Data Cleaning |
|
Chapter 3, Exploratory Data Analysis |
|
Chapter 4, Linear Regression for Business |
|
Chapter 5, Data Mining with Cluster Analysis |
|
Chapter 6, Time Series Analysis |
|
Chapter 7, Visualizing the Data's Story |
|
Chapter 8, Web Dashboards with Shiny |
|
In general, you will install R packages using the install.packages("{package name}")
function from the console. For instance, to install the dplyr
package, you will type the following in your R console:
install.packages("dplyr")
Most R packages are available at https://cran.r-project.org/web/packages/ .
Two packages used in this book, rCharts
and DT
, are installed directly from GitHub. They are referenced in Chapter 7, Visualizing the Data's Story, and Chapter 8, Web Dashboards with Shiny, respectively. At the time of publication, the versions of these packages available on CRAN did not have the required functionality or could not be installed directly from CRAN in the typical way.
install.packages("devtools") library(devtools) install_github(repo = 'ramnathv/rCharts') install_github(repo = 'rstudio/DT')
Note
GitHub is a free code-hosting platform for better version control and collaboration. Authors of R packages will host new code on GitHub to encourage transparency and collaboration. This code is often actively being updated and changed, so they contain features and perhaps bugs that do not exist in a formal package release on CRAN. These bleeding edge package versions can be installed directly from GitHub using the devtools
R package.