paleolimbot / geos

Open Source Geometry Engine ('GEOS') R API
https://paleolimbot.github.io/geos/
Other
61 stars 8 forks source link

Matrix operators #16

Closed paleolimbot closed 4 years ago

paleolimbot commented 4 years ago

Used with binary predicates to do spatial joins. It's more likely that these will return something like plyr::join_keys() than a matrix:

plyr::join.keys(data.frame(x = 1:5, y = 2), data.frame(x = 2:1), by = "x")
#> $x
#> [1] 1 2 3 4 5
#> 
#> $y
#> [1] 2 1
#> 
#> $n
#> [1] 5

Distance matrices can probably use the existing R infrastructure for distance.