Re: [R] Pb with function taxo2phylog (package ade4)

From: Stéphane Dray <dray_at_biomserv.univ-lyon1.fr>
Date: Mon 24 Oct 2005 - 22:04:00 EST

Christophe,
please send emails related to this package to the ade4 list :

http://pbil.univ-lyon1.fr/ADE-4/adelist.html

Merci.

Christophe Girod wrote:

>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
>
>
>
>

-- 
Stéphane DRAY (dray@biomserv.univ-lyon1.fr )
Laboratoire BBE-CNRS-UMR-5558, Univ. C. Bernard - Lyon I
43, Bd du 11 Novembre 1918, 69622 Villeurbanne Cedex, France
Tel: 33 4 72 43 27 57       Fax: 33 4 72 43 13 88
http://www.steph280.freesurf.fr/

______________________________________________
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 22:09:20 2005

This archive was generated by hypermail 2.1.8 : Mon 24 Oct 2005 - 23:12:28 EST