neighboursMatrix: FIND NEIGHBOURS IN MATRIX

View source: R/spatialTools.R

neighboursMatrixR Documentation

FIND NEIGHBOURS IN MATRIX

Description

finds the 8 neighbours of each cell in a matrix

Usage

neighboursMatrix(mat)

Arguments

mat

a matrix. Border of NA's is added to the matrix

Value

a matrix of 8 rows, with a columns per cell of the input matrix, which is treated by columns


CeresBarros/ToolsCB documentation built on Aug. 23, 2024, 4:22 p.m.