st_complete_nb {sfdep} | R Documentation |
Create Neighbors as Complete Graph
Description
Create a neighbors list where every element is related to every other element. This creates a complete graph.
Usage
st_complete_nb(n_elements, diag = FALSE)
Arguments
n_elements |
the number of observations to create a neighbors list for |
diag |
default |
Value
A neighbors list representing a complete graph.
Examples
st_complete_nb(5)
[Package sfdep version 0.2.4 Index]