Hi all,

I have an issue with using the drop.random to drop taxa from a set of
simulated trees. When I try to give the list as input it shows an
error:

Error in drop.random(simtrees, 937) :
  object "phy" is not of class "phylo"

I also tried using lapply and it keeps showing the same message.

Thanks in advance for your help!


Juanita

_________________________________________________________________________________

Here is the code I have used:


> treesim<-sim.bd.taxa.age(n=1008, numbsim=1000, lambda=9.111433e-02, 
> mu=3.242355e-07, frac = 1, age=31, mrca = FALSE)

>drop.random(treesim,937)

Error in drop.random(treesim, 937) : object "phy" is not of class "phylo"

> lapply(simtrees, drop.random (simtrees,937))
Error in drop.random(simtrees, 937) :  object "phy" is not of class "phylo"

-- 
Utah State University
Department of Biology
5305 Old Main Hill
Logan, UT/ USA 84322
 (435) 797-0358

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

Reply via email to