CreateHypotMatrix {evolqg}R Documentation

Creates binary correlation matrices

Description

Takes a binary vector or column matrix and generates list of binary correlation matrices representing the partition in the vectors.

Usage

CreateHypotMatrix(modularity.hypot)

Arguments

modularity.hypot

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.

Value

binary matrix or list of binary matrices. If a matrix is passed, all the vectors are combined in the last binary matrix (total hypothesis of full integration hypothesis).

Examples

rand.hypots <- matrix(sample(c(1, 0), 30, replace=TRUE), 10, 3)
CreateHypotMatrix(rand.hypots) 

[Package evolqg version 0.3-4 Index]