[R-sig-phylo] drop trees from multiphylo list

2014-04-28 Thread John Denton
Hi folks, I have a set of trees with tip states, generated by simulation, in a multiphylo object. I'd like to drop trees from the list based on a criterion (some trees do not exhibit all three tip states). I've tried the following (which is admittedly clumsy; I am not very familiar with

Re: [R-sig-phylo] drop trees from multiphylo list

2014-04-28 Thread David Bapst
Hi John, A fully reproducible example of the error you have encountered would be this: trees.pool-rmtree(N=10,n=100) trees.pool[[1]]-NULL Which returns the same error; the reason for this is that 'multiphylo' is an S3 class so ape has a specific function that replaces the generic replacement