Week 1
Welcome to GES668
weeks
Summary
Review the course syllabus and structure. Get started with spatial data using {sf}
and the tidyverse.
Overview
Welcome to Building Spatial Datasets!
Our first session starts with a general introduction to the course and a quick introduction to using R for working with spatial data.
Key Objectives
- Provide an overview of the scope and schedule of the course
- Introduce the concept of reproducibility and key reproducible practices for data management, programming, collaborating with colleagues, organizing projects, and tracking work
- Configure RStudio and create a RStudio project
- Introduce the concept of simple features and how the concept is implemented by the
{sf}
package - Create a Quarto document to practice using the
{tidyverse}
and{sf}
package
Key Skills
- Creating self-contained projects with RStudio
- Installing packages with
install.packages()
- Loading packages with
library()
- Using the
?
operator to look up function documentation - Using
str()
orView()
to look at an object - Using an assignment operator (
<-
or=
) to save an output to a new object - Creating and editing Quarto documents with RStudio
- Using
sf::st_read()
to read asf
object from a file path or URL
Prepare
Required readings
- Ch. 1 Introduction in Robin Lovelace, Jakub Nowosad, and Jannes Muenchow Geocomputation with R, 2nd ed. (CRC Press, 2025), https://r.geocompx.org.
- Ch. 2 Geographic data in R in Lovelace, Nowosad, and Muenchow Geocomputation with R.
- Chris Brunsdon and Alexis Comber “Opening Practice: Supporting Reproducibility and Critical Spatial Data Science,” Journal of Geographical Systems 23, no. 4 (October 1, 2021): 477–496, doi:10.1007/s10109-020-00334-2.
- Greg Wilson et al. “Good Enough Practices in Scientific Computing,” PLOS Computational Biology 13, no. 6 (June 22, 2017): e1005510, doi:10.1371/journal.pcbi.1005510.
- Ch. 3 Workflow: basics in Hadley Wickham, Garrett Grolemund, and Mine Çetinkaya-Rundel R for Data Science: Import, Tidy, Transform, Visualize, and Model Data, 2nd edition. (Sebastopol, CA: O’Reilly Media, 2023), https://r4ds.hadley.nz/.
Optional readings
Additional readings on working with spatial data in R:
- Introduction to Geospatial Concepts (Data Carpentry)
- Introduction to R for Geospatial Data (Data Carpentry)
- Ch. 3 Geometries in Edzer Pebesma and Roger Bivand Spatial Data Science (CRC Press, 2023), https://r-spatial.org/book/.
Additional readings on reproducible practices:
- Jennifer Bryan “How to Name Files,” May 14, 2015, https://speakerdeck.com/jennybc/how-to-name-files. (or the more recent recorded talk How to name files talk for NormConf 2022)
Participate
Practice
🛠️️ Exercise 01