Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Partition2HypotMatrix

Create binary hypothesis


Description

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.

Usage

Partition2HypotMatrix(x)

Arguments

x

vector of trait partition. Each partition receive the same symbol.

Value

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.

Examples

x = sample(c(1, 2, 3), 10, replace = TRUE)
Partition2HypotMatrix(x)

evolqg

Tools for Evolutionary Quantitative Genetics

v0.2-8
MIT + file LICENSE
Authors
Ana Paula Assis, Diogo Melo, Edgar Zanella, Fabio Andrade Machado, Guilherme Garcia
Initial release
2020-11-14

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.