We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
one_of
Example:
library(dplyr) df = data_frame(a = 1, b = 2) varlist1 = c("c") select(df, one_of(varlist1)) varlist2 = c("a", "c") select(df, one_of(varlist2))
The first selection returns the whole data frame, but I expect seeing an error or message indicating that there's no variable called c.
c
The second selection returns an error:
Error: Each argument must yield either positive or negative integers
This error message is not quite clear to me. It would be great if the second selection yields column a with a warning saying that c can not be found.
a
The text was updated successfully, but these errors were encountered:
1e4a97d
No branches or pull requests
Example:
The first selection returns the whole data frame, but I expect seeing an error or message indicating that there's no variable called
c
.The second selection returns an error:
This error message is not quite clear to me. It would be great if the second selection yields column
a
with a warning saying thatc
can not be found.The text was updated successfully, but these errors were encountered: