zToA: Z to Adjacency Matrix

View source: R/rccmSummary.R

zToAR Documentation

Z to Adjacency Matrix

Description

This function calculates an adjacency matrix based on an integer vector of cluster memberships.

Usage

zToA(z)

Arguments

z

Integer vector of cluster memberships.

Value

An adjacency matrix containing 1's and 0's.

Examples

# Calculate adjacency matrix for clustering
zToA(c(rep(1, 2), rep(2, 2), rep(3, 2)))


dilernia/rccm documentation built on Sept. 25, 2022, 9:40 a.m.