powered by
Compare Adjacency Lists
compare_adjacencies(adj1, adj2, shp, zero = TRUE)
tibble with row indices to compare, and optionally columns which describe the DE-9IM relationship between differences.
Required. A first adjacency list.
Required. A second adjacency list.
shapefile to compare intersection types.
Boolean. Defaults to TRUE. Are adj1 and adj2 zero indexed?
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)
Run the code above in your browser using DataLab