R/swf.clumper.regular.r
areThereLonelyOLD.Rd
This function checks if each habitat cell (specified by swfCat) in a matrix has a specific number of neighboring habitat cells within a given distance.
areThereLonelyOLD(matrix, NNeighbors, queensCase = TRUE, maxDistance = 5)
A binary matrix to check.
Exact number of neighbors to check for each habitat cell.
If TRUE, checks all 8 directions for neighbors; if FALSE, checks only 4.
Maximum distance to look for neighbors.
TRUE if any habitat cell has the specified number of neighbors within the given distance, FALSE otherwise.