make.consInt | R Documentation |
consInt
objectmake.consInt
welds together a data.frame
with a phylo
object to yield
an object that can be analyzed for most analyses. The builder keeps
the whole tree plus a tree subsetted to the table provided; and the whole
table plus a table subsetted to the rows in the tree
make.consInt(phy, dat, matchCol = NA, imposeTidy = TRUE, ...)
phy |
a |
dat |
a |
matchCol |
the column in |
imposeTidy |
|
... |
extra parameters to pass to |
### 1st block redundant with cleanPhylo example data(malus_tr) data(quercus_tr) data(tilia_tr) data(ulmus_tr) malus2 <- cleanPhylo(malus, delim = '_|_') quercus2 <- cleanPhylo(quercus) tilia2 <- cleanPhylo(tilia) ulmus2 <- ulmus ulmus2$tip.label <- paste('Ulmus', ulmus2$tip.label) ### Not duplicated in cleanPhylo: data(accessions.mor) # read MOR accessions data data(desiderata.mor) # read MOR desiderata list temp <- c(accessions.mor$Taxon, desiderata.mor$taxon_name) %>% unique %>% sort dat.mor <- data.frame(inGarden = temp %in% accessions.mor$Taxon, wanted = temp %in% desiderata.mor$taxon_name, row.names = temp) rm(temp) combo.malus <- make.consInt(malus2, dat.mor) combo.quercus <- make.consInt(quercus2, dat.mor) # combo.tilia <- make.consInt(tilia2, dat.mor) ## duplicate somewhere combo.ulmus <- make.consInt(ulmus2, dat.mor)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.