Description Usage Arguments Value Examples
View source: R/network_clean.R
- converts Z to binary - removes empty columns from Z - confirms tree is a phylo object when using full or distance models - removes tree tips that do not exist in the rows of Z - removes the rows of Z with no corresponding tips in the tree - orders the rows of Z according to the cophenetic function
1 | network_clean(Z, tree = NULL, model.type = c("full", "distance", "affinity"))
|
Z |
bipartite interaction matrix. Rows should correspond to species in the tree. There should be no empty columns. |
tree |
'phylo' object |
model.type |
Indicate model to use: one of 'full', 'distance', 'affinity' |
Returns a list of the cleaned Z and tree objects
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.