Description Usage Arguments Value
View source: R/create_adjacency_matrix.R
Create a binary adjacency matrix from a distance matrix.
1 | create_adjacency_matrix(distance_matrix, threshold, zero_diagonal = T, ...)
|
distance_matrix |
A distance matrix (see create_distance_matrix()). |
threshold |
The minimum distance one unit should be from another (expressed in same units as distance matrix) |
zero_diagonal |
A logical argument indicating whether the diagonal of the adjacency matrix should be all 0's, such that a unit is not defined as adjacent to itself. |
An adjacency matrix with binary indicators for adjacency.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.