Import data files from Phylogenetic Independance Package
Import data files from Phylogenetic Independance Package
This function ensures to transform a data set written for the Phylogenetic Independance package of Abouheif (1999) in a data set formatting for the functions of ade4.
PI2newick(x)
Arguments
x: is a data frame that contains information on phylogeny topology and trait values
Returns
Returns a list containing : - tre: : a character string giving the phylogenetic tree in Newick format
trait: : a vector containing values of the trait
References
Abouheif, E. (1999) A method for testing the assumption of phylogenetic independence in comparative data. Evolutionary Ecology Research, 1 , 895--909.