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
cur_column()
not working in case_when()
LHS
#6984
Comments
I think you can achieve your goal with use of pick() and pull()
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I want to recode certain columns based on values of columns that have a similar naming. I'm using 1.
case_when()
to recode, 2.cur_column()
to programmatically select the "related" columns, and 3.across()
to automatically do this across the relevant columns.As shown below, I can do this when specifying one column, but not with
cur_column()
. It complains that it must be used withinacross()
, even though it is being used withinacross()
Created on 2024-01-15 with reprex v2.1.0
Session info
The text was updated successfully, but these errors were encountered: