4.5 SLIDE Vectors Spatial Joining
- Spatial joins are implemented with
st_join()
default - left join - all from x - left, including rows that DO NOT match y
- inner join - set left=FALSE
default join for st_join() is st_intersects()
can change - set the join argument
- (see
?st_join
for details)
- (see
- Example Fig 4.6 - points join with the polygons that there are within
- Random points on World map - join the Country name (polygon attribute) that the point is within
- non overlapping join example
- use the binary predicate
st_is_within_distance()
- use the binary predicate