Description Usage Arguments Details Value Author(s) See Also Examples
Returns an unweighted adjacency matrix with a '1' where observations are from the same class, '0' if from different classes based on a vector of class assingments.
1 |
x |
Numeric vector containing the class/cluster assignments |
labels |
Optional. Vector of labels for the individual observations |
Used for converting class/community assingments into an adjacency matrix.
A square matrix is returned with the number of rows, columns equal to the length of x
and in the same order. If lables
is supplied, they will be used as the row/column names.
Shannon M. Bell
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.