View source: R/PermulationFuncs.R
simBinPhenoVec | R Documentation |
Generates a permulated phenotype vector whose phylogeny matches a desired structure. User may specify the number of foreground branches that are internal branches.
simBinPhenoVec(trees, root, phenvec, fgnum = NULL, internal = 0, drop = NULL)
trees |
treesObj output from |
root |
Species on which to root the master tree |
phenvec |
Named vector of 1's and 0's representing phenotype values for each species |
fgnum |
Total number of foreground species - only required if internal foreground branches are required |
internal |
Number of foreground species that should be internal branches - only required if internal foreground branches are required |
drop |
Character vector (or single character variable) of species names to be removed from the master tree (such as species in trees but not in phenotype vector) |
A vector of permulated foreground species
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.