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

select() special function for vector of column names #396

Closed
HarlanH opened this issue Apr 16, 2014 · 2 comments
Closed

select() special function for vector of column names #396

HarlanH opened this issue Apr 16, 2014 · 2 comments
Assignees
Labels
feature a feature request or enhancement
Milestone

Comments

@HarlanH
Copy link

HarlanH commented Apr 16, 2014

This may be superceded by #352. But I've got a situation where I'd like to do something like:

select(df, known_col_name, starts_with("cluster_"), vector_of_col_names)

That doesn't currently work. It seems like select_q will be one approach. Another approach would be a special function along the lines of matches_any(vector_of_col_names), which would let me keep the bare word known_col_name.

The workaround's not difficult, but this'd be a nice to have. Thanks!

@hadley
Copy link
Member

hadley commented Apr 17, 2014

I like the function idea but I think the name is a bit imprecise. How about one_of?

@HarlanH
Copy link
Author

HarlanH commented Apr 17, 2014

Works for me!

On Thu, Apr 17, 2014 at 12:53 PM, Hadley Wickham
notifications@github.comwrote:

I like the function idea but I think the name is a bit imprecise. How
about one_of?


Reply to this email directly or view it on GitHubhttps://github.com//issues/396#issuecomment-40736291
.

@hadley hadley self-assigned this Aug 1, 2014
@hadley hadley added this to the 0.3.1 milestone Aug 1, 2014
@hadley hadley closed this as completed in c67f672 Aug 1, 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