View source: R/NeighbourhoodMatrixNetwork.R
NeighbourhoodMatrixNetwork | R Documentation |
Given a linear network structure, this function creates the neighbourhood matrix ("queen" criterion) associated to it. Two segments of the network are neighbours if they share a vertex
NeighbourhoodMatrixNetwork(network)
network |
- A |
Returns a listw
object in "W"
style
library(DRHotNet)
library(spatstat.geom)
library(spatstat.linnet)
library(spdep)
library(raster)
chicago_neighbourhood <- NeighbourhoodMatrixNetwork(chicago$domain)
class(chicago_neighbourhood)
chicago_neighbourhood$neighbours[[1]]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.