View source: R/CreateHypotMatrix.R
Partition2HypotMatrix | R Documentation |
Takes a vetor describing a trait partition and returns a binary matrix of the partitions where each line represents a trait and each column a module. In the output matrix, if modularity.hypot[i,j] == 1, trait i is in module j.
Partition2HypotMatrix(x)
x |
vector of trait partition. Each partition receive the same symbol. |
Matrix of hypothesis. Each line represents a trait and each column a module. if modularity.hypot[i,j] == 1, trait i is in module j.
x = sample(c(1, 2, 3), 10, replace = TRUE)
Partition2HypotMatrix(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.