NeighbourhoodMatrixNetwork: Creates the neighbourhood structure of a linear network

View source: R/NeighbourhoodMatrixNetwork.R

NeighbourhoodMatrixNetworkR Documentation

Creates the neighbourhood structure of a linear network

Description

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

Usage

NeighbourhoodMatrixNetwork(network)

Arguments

network

- A linnet object representing a linear network structure

Value

Returns a listw object in "W" style

Examples

library(DRHotNet)
library(spatstat.geom)
library(spatstat.linnet)
library(spdep)
library(raster)
chicago_neighbourhood <- NeighbourhoodMatrixNetwork(chicago$domain)
class(chicago_neighbourhood)
chicago_neighbourhood$neighbours[[1]]

DRHotNet documentation built on July 26, 2023, 5:18 p.m.