compare_adjacencies {geomander} | R Documentation |
Compare Adjacency Lists
Description
Compare Adjacency Lists
Usage
compare_adjacencies(adj1, adj2, shp, zero = TRUE)
Arguments
adj1 |
Required. A first adjacency list. |
adj2 |
Required. A second adjacency list. |
shp |
shapefile to compare intersection types. |
zero |
Boolean. Defaults to TRUE. Are adj1 and adj2 zero indexed? |
Value
tibble with row indices to compare, and optionally columns which describe the DE-9IM relationship between differences.
Examples
data(towns)
rook <- adjacency(towns)
sf_rook <- lapply(sf::st_relate(towns, pattern = 'F***1****'), function(x) {
x - 1L
})
compare_adjacencies(rook, sf_rook, zero = FALSE)
[Package geomander version 2.3.0 Index]