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
Suggested new convenience function: recast() #3785
Comments
Thanks. Have you seen |
I missed the part where you wrote about My gut feeling is that such a function should live elsewhere, partly because this functionality already can be achieved with existing tools. The #3433 is about providing a better interface for passing the functions. |
And generally, I think you should solve type problems further up the pipeline (e.g. during import) |
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/ |
Tweeted about this earlier this week. Essentially, I do this a lot, and imagine many others do, too.
It's clunky typing the column name twice, and while there's also
mutate_at(vars(column_name), as.character)
, that also feels clunky too. I propose a convenience wrapper function,recast()
such that:(Thanks to JLS_Datascience for the idea.)
I'd like to try writing a function for this and then do a PR. I can model it off a similar convenience wrapper (which one?).
Can I?
The text was updated successfully, but these errors were encountered: