phyloFrame | R Documentation |
gpf
Tacks "phylo" variable onto data frame for gpf
phyloFrame(Data, grp, tree)
Data |
data table input to |
grp |
Group list element from |
tree |
phylo class object |
library(phylofactor)
set.seed(1)
tree <- rtree(10)
Data <- data.table('Species'=tree$tip.label,'x'=rnorm(10),key='Species')
Grps <- getPhyloGroups(tree)
phylofactor:::phyloFrame(Data,Grps[[1]],tree)
grp <- list(c(1:3),c(5:6))
phyloFrame(Data,grp,tree)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.