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

remove or exclude verb to remove columns from data.frame (similar to select) #231

Closed
jlegewie opened this issue Feb 1, 2014 · 1 comment

Comments

@jlegewie
Copy link
Contributor

jlegewie commented Feb 1, 2014

Hi,
I often find myself using select when I just want to exclude 2 or 3 columns from a data.frame. As a result, I end up with a long list of column names that are passed to select. I think a remove or exclude verb would be a great addition. remove is already used by base so that might not be such a good idea for a name.

@hadley
Copy link
Member

hadley commented Feb 2, 2014

For that scenario you can just use negative indexing.

@hadley hadley closed this as completed Feb 2, 2014
@lock lock bot locked as resolved and limited conversation to collaborators Jun 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants