create_adjacency_matrix: Create a binary adjacency matrix from a distance matrix.

Description Usage Arguments Value

View source: R/create_adjacency_matrix.R

Description

Create a binary adjacency matrix from a distance matrix.

Usage

1
create_adjacency_matrix(distance_matrix, threshold, zero_diagonal = T, ...)

Arguments

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.

Value

An adjacency matrix with binary indicators for adjacency.


jaspercooper/distancematrix documentation built on May 18, 2019, 5:55 p.m.