emmanuelparadis / ape

analysis of phylogenetics and evolution

Home Page:http://ape-package.ird.fr/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`c.multiPhylo` drops names

ms609 opened this issue · comments

It would be useful if names were preserved when merging phylo / multiPhylo objects:

tr1 <- c(foo = read.tree(text = '(a, b);'))
tr2 <- c(bar = read.tree(text = '(a, b);'))

names(tr1) # = 'foo'
names(c(tr1, tr2))
# Returns NULL, expected c('foo', 'bar')

A fixed version is on GH. I did a few tests but more tests will be welcome.
Best,
Emmanuel

Great, thank you! I'll play around with and add further tests if I encounter any unexpected behaviour regarding this or #36.