Chapter 2 Prerequisites

The book assumes the reader has basic understanding of high school matematical concepts such as matrices and array operations. The book is completely written in R programming using bookdown package in R Studio environment.

The bookdown package can be installed from CRAN or Github:

install.packages("bookdown")
# or the development version
# devtools::install_github("rstudio/bookdown")

We will cover more on package installation in subsequent chapters.

Remember each Rmd file contains one and only one chapter, and a chapter is defined by the first-level heading #.

To compile this example to PDF, you need XeLaTeX. You are recommended to install TinyTeX (which includes XeLaTeX): https://yihui.name/tinytex/.