I need to try and extract just one tree from a MultiPhylo containing 1000 trees (in this case the multiphylo is named 'waterbirds') in it. It does not actually matter which tree it is but for example, say tree 42?
Also I am attempting to run an ancestral state reconstruction, however when trying the code:
fit <- fastAnc(tree, brainmean, vars = TRUE, CI = TRUE)
I run into the error:
Error in fastAnc(tree, brainmean, vars = TRUE, CI = TRUE): tree should be object of class "phylo"
I believe this is due to the 'tree' object not being extracted properly.