[R] Pb with function taxo2phylog (package ade4)

From: Christophe Girod <chrisgir69_at_hotmail.fr>
Date: Mon 24 Oct 2005 - 21:44:58 EST


Hello

  I'm using the package ade4 to obtain classification from a .txt file. I use the following commands:
cronquist <- read.table("cronquist.txt", h = T, row.names = 8) cronquist <- as.taxo(cronquist[7:1])
cro.phy <- taxo2phylog(cronquist)

in which cronquist.txt is a file with a classification of 218 genus of tree species from french Guiana.
We I try to use the function taxo2phylog, I obtain the following error message (in French) :
Erreur dans newick2phylog.addtools(res) : la longueur de 'dimnames' [2] n'est pas égale à l'étendue du tableau
Error in newick2phylog.addtools(res) : length of dimnames[2] is not equal to length of frame

newick2phylog.addtools is a function that is called when taxo2phylog is called

when I want to know what is in dimnames[2] I obtain the names of my columns : none is missing.

I don't understand what's happening because I've already been using this function with other files and I had no problem Can someone help me?

Thanks

Christophe Girod



Apprenez à lutter contre le spam !

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon Oct 24 21:48:59 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:40:46 EST