| analyze_network_structure | R Documentation |
Analyzes the connectivity of a dissimilarity matrix, returning node degrees and overall completeness.
analyze_network_structure(dissimilarity_matrix)
dissimilarity_matrix |
Square symmetric matrix of dissimilarities. |
A list containing the network analysis results:
adjacency |
A logical |
connectivity |
A |
summary |
A list of overall network statistics, including |
# Create a sample dissimilarity matrix
dist_mat <- matrix(runif(25), 5, 5)
rownames(dist_mat) <- colnames(dist_mat) <- paste0("Point", 1:5)
dist_mat[lower.tri(dist_mat)] <- t(dist_mat)[lower.tri(dist_mat)]
diag(dist_mat) <- 0
dist_mat[1, 3] <- NA; dist_mat[3, 1] <- NA
# Analyze the network structure
metrics <- analyze_network_structure(dist_mat)
print(metrics$summary$completeness)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.