get_distance {bespatial} | R Documentation |
Calculates an average distance between non-NA cells
Description
Calculates an average distance between non-NA cells
Usage
get_distance(p, x)
Arguments
p |
A matrix |
x |
A SpatRaster with proper metadata (e.g., extent and CRS) |
Details
It converts permuted matrix into a vector dataset, and calculates an average distance between the points
Value
An average distance between points
[Package bespatial version 0.1.2 Index]