If you are new to R, we recommend reading Chapter 2 of the online book Efficient R Programming by Gillespie and Lovelace () andlearning the basics of the language with reference to resources such as Grolemund and Wickham (2016) or before proceeding.Organize your work (e.g., with RStudio projects) and give scripts sensible names such as to document the code you write as you learn.

    If you’re running Mac or Linux, the previous command to install sf may not work first time.These operating systems (OSs) have ‘systems requirements’ that are described in the package’s README.Various OS-specific instructions can be found online, such as the article Installation of R 3.5 on Ubuntu 18.04 on the blog .

    The other packages that were installed contain data that will be used in the book: