[R-sig-phylo] "Not of class phylo" error when lapply is used

2018-04-09 Thread jschenk
Hi Folks, I have been banging my head against what appears to be an easy coding problem for a while now and haven’t been able to hack my way out of it. I am running a function to identify a posterior set of node ages for a particular node. The function I wrote works just fine, but when I use

Re: [R-sig-phylo] "Not of class phylo" error when lapply is used

2018-04-09 Thread jschenk
Thank you Graham, Liam, and Emmanuel for your suggestions. Applying the .uncompressTipLabel did the trick for my code. If anyone is interested in using the code to identify the 95% HPD for a single node from a set of chronograms, you can find the code here

Re: [R-sig-phylo] "Not of class phylo" error when lapply is used

2018-04-09 Thread Liam J. Revell
Dear John. You could try running .uncompressTipLabel on the "multiPhylo" object. Let us know if that works. All the best, Liam Liam J. Revell, Associate Professor of Biology University of Massachusetts Boston & Profesor Asociado, Programa de Biología Universidad del Rosario web:

Re: [R-sig-phylo] "Not of class phylo" error when lapply is used

2018-04-09 Thread Emmanuel Paradis
Hi John, See my comments below. Le 09/04/2018 à 16:46, jschenk a écrit : Hi Folks, I have been banging my head against what appears to be an easy coding problem for a while now and haven’t been able to hack my way out of it. I am running a function to identify a posterior set of node ages