Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error using as.treedata() for pml object #127

Open
gdunshea opened this issue Aug 21, 2024 · 1 comment
Open

Error using as.treedata() for pml object #127

gdunshea opened this issue Aug 21, 2024 · 1 comment

Comments

@gdunshea
Copy link

Hello,

I have made a pml tree similar to section 1.3.3 in your vignette. However, when I get to

pmltree <- as.treedata(fit)

I get the following error:

Error in UseMethod("as.treedata") : no applicable method for 'as.treedata' applied to an object of class "pml"

I am at a loss here and wonder if you could help.

Thanks,
Glenn

@gdunshea gdunshea changed the title Errorusing as.treedata() for pml object Error using as.treedata() for pml object Aug 21, 2024
@brj1
Copy link
Contributor

brj1 commented Aug 21, 2024

Try loading the tidytree package first. as.treedata() lives there now.

library(tidytree)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants