Hi Ben,
Thank you for your help.
I did the same question in the r-sig-phylo mailing list. Liam Revell gave
the following solution:
temp<-prop.part(tree)
X<-matrix(0,nrow=length(tree$tip),ncol=length(temp),dimnames=list(tree$tip.label,tree$node.label))
for(i in 1:ncol(X)) X[temp[[i]],i]<-1
Vand
vanderlei52 yahoo.com.br> writes:
>
> I need to create a binary matrix with all node of a phylogenetic tree and the
> presence of each taxo in their respective node.
>
I would suggest that you try this question on the r-sig-phylo mailing
list instead. The phylobase package has an ancestors(
2 matches
Mail list logo