neighbourhood: neighbourhood matrix to represent adjacent cells

View source: R/neighbourhood.R

neighbourhoodR Documentation

neighbourhood matrix to represent adjacent cells

Description

neighbourhood matrix to represent adjacent cells

Usage

neighbourhood(neighbours)

Arguments

neighbours

numeric or matrix Expected numeric values are 4, 8, 16, 32, or 48. A user-supplied matrix of 0 and 1s can be supplied. Here, 0 denotes non-adjaency and 1 denotes adjacency

Value

matrix neighbourhood matrix

Author(s)

Joseph Lewis


josephlewis/leastcostpath documentation built on Oct. 18, 2023, 2:03 p.m.