Integrating Rasters and Vector Data

Content for Monday, October 16, 2023

The goal of much of our spatial data “munging” is to create a dataframe that can be used in subsequent statistical analyses. It can be difficult to link all of the steps of filtering, selecting, extracting, etc into a coherent problem when you are just being exposed to the syntax (as we discovered last week). Today, I’ll try to use a motivating example to help you see a path forward.

Resources

Objectives

By the end of today you should be able to:

  • Use dplyr with predicates and measures to subset and manipulate data

  • Use extract to access raster data

  • Use zonal to summarize access data

  • Join data into a single analyzable dataframe

Slides

The slides for today’s lesson are available online as an HTML file. Use the buttons below to open the slides either as an interactive website or as a static PDF (for printing or storing for later). You can also click in the slides below and navigate through them with your left and right arrow keys.

View all slides in new window Download PDF of all slides

Link to Zoom Recording

References

Lovelace, R., J. Nowosad, and J. Muenchow. 2019. Geocomputation with R. CRC Press.