Description Usage Arguments Details Value See Also
Calculates the the number of neighbors for a spatial unit.
1 |
val |
Name of spatial unit from df2. |
df1 |
Data frame of regular spatial units, must have columns |
df2 |
Data frame of irregular spatial units, must have columns named |
max_dist |
The maximum distance at which two locations can be considered neighbors. |
suid |
The column name which contains the ID of the spatial unit. |
... |
Space for additional arguments, passed to sf::st_distance. |
This is an internal function designed to be used within gail as part of a purrr type operation.
Returns the number of spatial units from df1
that are within
distance max_dist
of the unit val
from df2
.
gail
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.