get_neighbors: Get Neighborhoods

View source: R/fidelity_funs_get-neighborhoods.R

get_neighborsR Documentation

Get Neighborhoods

Description

Function to create a map of neighboring cells in a raster within a user-defined perceptual range distance of each cell.

Usage

get_neighbors(lands, prange)

Arguments

lands

Raster of habitat quality.

prange

Numeric. Perceptual range radius. Units match the units of the coordinates: m if UTM, degrees if lat/long.

Value

A list with one element per raster cell. Each element contains the identifiers of neighboring cells within the specified perceptual range.


picardis/fidelity documentation built on Dec. 10, 2022, 6:16 a.m.