Prerequisites

  • This chapter requires the following packages to be installed and attached:
  1. library(sf)
  2. library(raster)
  3. library(dplyr)
  4. library(stringr) # for working with strings (pattern matching)
  • It also relies on spData, which loads datasets used in the code examples of this chapter:
  1. library(spData)