Dear,
I have a community data matrix (presence and absence) and a phylogenetic tree created by ape package in R. But when I try calculate correlation between co-occurrence of species and its phylogenetic distance on picante package, using "comm.phylo.cor" function, it gives a error that I can't fix: Error in as.hclust.default(x) :
argument 'x' cannot be coerced to class “hclust”character(0)
In addition: Warning message:
In drop.tip(phylo, trimTaxa) : drop all tips of the tree: returning NULL
I'm using the following script:
library(picante)
presence