-
Notifications
You must be signed in to change notification settings - Fork 124
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 in likert(…, grouping = grouping) #16
Comments
This issue has been fixed and a test was added to the UnusedLevels demo. Problem seem to be more related to using a numeric vector type for the group assignment. |
I am having the same problem show up and the example in the demo is also throwing the same error. |
Not sure why, but detaching the reshape package solved this for me. |
I just recently updated the package to use reshape2 instead of reshape given that ggplot2 uses the latter now. I do explicitly call reshape2::melt but if reshape is also loaded, there is a conflict somewhere in the namespace. I believe it has to do with the fact that the class type returned by both are the same so the wrong S3 method is being dispatched. My advice, abandon reshape and stick with reshape2. I believe that RStudio and Hadley have done. |
Detaching reshape did it for me as well. Thanks for the tip. I believe the reshape2 tasks are now predominantly going to be done using tidyr. So we could go to the gather function to do what melt does. I will take a closer look at the package code sometime soon. Thanks for the great work on this. |
Great! Glad it worked. I finally get around to update to reshape2 and -Jason On Thu, Nov 12, 2015 at 9:17 AM, Vivek Patil notifications@github.com
|
Thanks! I detached reshape then loaded reshape2 and all was well detach("package:reshape", unload=TRUE) |
likert() throws an error, if there is a variable with unused levels, and grouping is used.
output is:
The text was updated successfully, but these errors were encountered: