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 on ### now fit the models #9

Closed
lydeejeanne opened this issue Feb 23, 2022 · 2 comments
Closed

Error on ### now fit the models #9

lydeejeanne opened this issue Feb 23, 2022 · 2 comments

Comments

@lydeejeanne
Copy link

I'm trying to make a tutorial based on this data and can't seem to troubleshoot why I'm getting this error for the code following ### now fit the models ---------------------------------------------------------
Any assistance appreciated

Error in names(dat) <- object$term :
'names' attribute [1] must be the same length as the vector [0]

@lydeejeanne
Copy link
Author

I think I figured it out, just needed to add the following to get it to work:

dat$site=as.factor(dat$site)

Thanks for providing this tutorial!

@beckyfisher
Copy link
Owner

Glad you worked it out lydeejeanne!

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