Hi John.

Try:

obj<-lapply(trees,function(x){ x$edge.length<-NULL; x})
class(obj)<-"multiPhylo"
write.tree(file="filename",phy=obj)

- Liam

Liam J. Revell, Assistant Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: [email protected]
blog: http://blog.phytools.org

On 7/25/2014 2:03 PM, john d wrote:
Hello there,

Here's a really simple question, but that has baffled me so far: how can I
save a multi.phylo object, but only including the topology (without branch
lengths)?

thanks!

John

        [[alternative HTML version deleted]]

_______________________________________________
R-sig-phylo mailing list - [email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at http://www.mail-archive.com/[email protected]/


_______________________________________________
R-sig-phylo mailing list - [email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at http://www.mail-archive.com/[email protected]/

Reply via email to