Hey everyone! So I have a phylogenetic tree that needed some editing. I removed some tips with the command drop.tip from the treeio package. Then I changed the labels of the tips by making a dataframe of the new label names and then inserting them into the tree like so:
newlabels<- c("C. eucineta", "C. codringtonii", "C. elisabethae","C. gittenbergeri", "C. helenae", "C. intusplicata", "C. parnassia")
tree$tip.label<- newlabels
From that point on, I need to export the tree. I tried to do so by using the write.beast command (since the tree contains data regarding the time of the divergence) but I got the following message:
Error in (function (cl, name, valueClass) :
‘phylo’ is not a slot in class “phylo”
If anyone has a clue I'd appreciate it!