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

Create selecting() to generate code to select exactly the columns in a data frame. #7

Open
joethorley opened this issue Aug 9, 2022 · 1 comment

Comments

@joethorley
Copy link
Member

a great way to say only select informative columns and the convert to code that no longer depends on values (to avoid breakage)

@joethorley joethorley changed the title Create function to generate code to select exactly the columns in a data frame. Create selecting() to generate code to select exactly the columns in a data frame. Dec 21, 2022
@joethorley
Copy link
Member Author

selecting <- function(.data, ..., .fix = NULL)

selecting(data)

"select(col1, somethingelse, daa, daa2)"

selecting(data, .fix = "'")

"select('col1', 'somethingelse', 'daa', 'daa2')"

selecting(data, matches("^d"), .fix = '"')

'select("daa", "daa2")'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants