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

Proposition for changing the error message in group_by when using unknown columns #716

Closed
Sade154 opened this issue Oct 22, 2014 · 1 comment
Assignees
Labels
feature a feature request or enhancement
Milestone

Comments

@Sade154
Copy link

Sade154 commented Oct 22, 2014

Hello,

When we use group_by with a wrong column name we get this :

library(dplyr)
group_by(iris, wrong_name_of_variable)
# Error: index out of bounds

I think, it would be better to have an error message like with filter which is more helpful (especially when we deal with many variables ):

filter(iris, wrong_name_of_variable)
Error: unknown column : wrong_name_of_variable

KR

@romainfrancois
Copy link
Member

@Sade154 can you wrap you code with "```" please.

@romainfrancois romainfrancois added the feature a feature request or enhancement label Oct 22, 2014
@romainfrancois romainfrancois self-assigned this Oct 22, 2014
@romainfrancois romainfrancois added this to the 0.3.1 milestone Oct 22, 2014
@lock lock bot locked as resolved and limited conversation to collaborators Jun 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature a feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants