create_distance_matrix {ggEDA}R Documentation

Create a Distance Matrix from Edge Crossing Data

Description

Converts the results of count_all_edge_crossings() into a distance matrix, where each entry represents the number of crossings between two columns.

Usage

create_distance_matrix(data, as.dist = FALSE)

Arguments

data

A data frame with columns col1, col2, and crossings.

as.dist

Logical; if TRUE, converts the matrix to a dist object.

Value

A square matrix of distances, or a dist object if as.dist = TRUE.


[Package ggEDA version 0.1.0 Index]