Binary logical operations (7)

The order of the two arguments of st_intersects() is important!

inter <- st_intersects(nc, nc_points_2)
inter
## Sparse geometry binary predicate list of length 100, where the
## predicate was `intersects'
## first 10 elements:
##  1: (empty)
##  2: 12
##  3: 36
##  4: (empty)
##  5: 4
##  6: 77
##  7: 56
##  8: 78, 83
##  9: (empty)
##  10: (empty)
lengths(inter)
##   [1] 0 1 1 0 1 1 1 2 0 0 1 1 1 0 0 1 4 3 0 0 0 0 0 1 0 1 1 1 1 0 0 0 1 0 0 0 1
##  [38] 1 1 1 0 0 1 0 1 1 1 4 1 1 2 0 1 2 3 0 3 2 2 1 2 3 3 0 0 0 2 2 0 2 0 0 1 0
##  [75] 2 1 1 1 1 0 0 0 1 0 0 1 1 5 0 2 3 2 4 1 1 0 2 1 1 0