rcpp_create_neighborhood: Create neighborhood coordinates

View source: R/RcppExports.R

rcpp_create_neighborhoodR Documentation

Create neighborhood coordinates

Description

This function creates a neighborhood coordinates matrix based on the directions parameter.

Usage

rcpp_create_neighborhood(directions)

Arguments

directions

The number of directions in which cells should be connected: 4 (rook's case), 8 (queen's case), or a neighbourhood matrix. The neighbourhood matrix should have one cell with value 0 (the focal cell), and at least one cell with value 1 (the adjacent cells). Cells with other values (e.g. NA) are ignored.


r-spatialecology/landscapemetrics documentation built on April 3, 2024, 2:21 a.m.