Hi Pedro,

It's an issue in the design of the package. The condition tests should be something like:

if (inherits(phylo, "treeshape")) ....
if (inherits(phylo, "phylo")) ....

But if the output makes sense, you should not worry about it since, apparently, this is just to transform the tree in the appropriate class.

Best,

Emmanuel

Le 01/02/2016 18:15, Pedro Neves a écrit :
Hello,

I'm trying to use the function maxlik.betasplit from the apTreeshape package in 
some phylogenetic trees. I previously converted the trees to the treeshape 
format and removed polytomies.
However, each time I run the command, I get several warnings, usually more than 
50, all with the same text:







49: In if
(class(phylo) == "treeshape") bal <- bbalance(as.phylo(phylo)) :

   the condition has length > 1 and only the
first element will be used


50: In if
(class(phylo) == "phylo") bal <- bbalance(phylo) :

   the condition has length > 1 and only the
first element will be used
Despite getting the results I need, I'm not sure what these warnings mean and 
so don't really trust the data I'm getting. Is it something I can ignore?
Thanks in advance!Pedro


                                        
        [[alternative HTML version deleted]]

_______________________________________________
R-sig-phylo mailing list - R-sig-phylo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at http://www.mail-archive.com/r-sig-phylo@r-project.org/


Pour nous remonter une erreur de filtrage, veuillez vous rendre ici : 
http://f.security-mail.net/807il6XNqbK



_______________________________________________
R-sig-phylo mailing list - R-sig-phylo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at http://www.mail-archive.com/r-sig-phylo@r-project.org/

Reply via email to