ABSTRACT

This chapter helps the readers learn how to perform computations on geospatial data that will enable us to answer questions about how long or how big spatial features are. It explores how to use geometric operations and spatial joins to create new geospatial objects. These capabilities will broaden the spectrum of analytical tasks we can perform, and accordingly expand the range of questions we can answer. The chapter considers the perhaps more natural behavior of spatial aggregation. A geospatial join is a fundamentally different type of operation, in which both data frames are geospatial, and the joining key is a geospatial attribute. This operation is implemented by the st_join() function, which behaves similarly to the inner_join() function, but with some additional complexities due to the different nature of its task. To illustrate this, the chapter considers the question of in which type of forest the two campsites at MacLeish lie.