assoc_mat | R Documentation |
Creates a binary host-symbiont association matrix from a two-columns matrix or data frame of host-symbiont associations.
assoc_mat(hs)
hs |
A two-columns matrix or data frame representing associations between hosts (column 1) and symbionts (column 2) species. |
An association binary matrix, with hosts in rows and symbionts in columns, sorted alphabetically.
data(nuc_cp)
NTaxa <- sort(NUCtr$tip.label)
CPTaxa <- sort(CPtr$tip.label)
NC <- assoc_mat(data.frame(NTaxa, CPTaxa))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.