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 in grouping dfm #2134

Closed
ruudfiers opened this issue Aug 27, 2021 · 3 comments · Fixed by #2136
Closed

Error in grouping dfm #2134

ruudfiers opened this issue Aug 27, 2021 · 3 comments · Fixed by #2136

Comments

@ruudfiers
Copy link

When grouping a dfm, I get an error (Error in qatd_cpp_is_grouped_numeric(as.numeric(x), group) : Invalid groups) with one docvar, while another docvar that is similar, does work. I can't figure out what the difference is and how to solve it.

@kbenoit
Copy link
Collaborator

kbenoit commented Aug 27, 2021

Could you supply a reproducible example please, so we can replicate the problem?

@ruudfiers
Copy link
Author

ruudfiers commented Sep 10, 2021

Thanks for your reply! It had to do with missing values. You can't group by a variable that has NA's, so it seems

@kbenoit
Copy link
Collaborator

kbenoit commented Sep 13, 2021

Interesting, thanks. @koheiw I wonder if we should trap this condition.

@koheiw koheiw mentioned this issue Sep 14, 2021
kbenoit added a commit that referenced this issue Oct 26, 2021
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

Successfully merging a pull request may close this issue.

2 participants