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
select
In the guide on selecting columns, you use the tilde (~) operator before a column name to indicate that column should be excluded from the selection:
~
You can remove a column from the data by putting a tilde operator (~) in front of it. penguins >> select(~_.body_mass_g, ~_.sex, ~_.year)
You can remove a column from the data by putting a tilde operator (~) in front of it.
penguins >> select(~_.body_mass_g, ~_.sex, ~_.year)
But, later on down that page in the pandas comparison, you use a dash (or minus sign?) before the column name:
# keep all *except* cyl column mtcars >> select(-_.cyl)
Is one notation preferred?
The text was updated successfully, but these errors were encountered:
Hey, I would lean towards ~. I added it to match dplyr's switch from - to !, but old habits die hard 😬.
-
!
Let's use this issue to track changing the docs to consistently use ~.
Sorry, something went wrong.
No branches or pull requests
In the guide on selecting columns, you use the tilde (
~
) operator before a column name to indicate that column should be excluded from the selection:But, later on down that page in the pandas comparison, you use a dash (or minus sign?) before the column name:
Is one notation preferred?
The text was updated successfully, but these errors were encountered: