-
Notifications
You must be signed in to change notification settings - Fork 419
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
Improve pivot_longer(names_pattern)
syntax
#1417
Comments
Does that look something like Previously: who %>% pivot_longer(
cols = new_sp_m014:newrel_f65,
names_to = c("diagnosis", "gender", "age"),
names_pattern = "new_?(.*)_(.)(.*)",
values_to = "count"
) New: (where it makes who %>% pivot_longer(
cols = new_sp_m014:newrel_f65,
names_pattern = c("new_?", diagnosis = ".*", "_", gender = ".", age = ".*"),
values_to = "count"
) It looks like maybe we could also use features from
|
I think the toughest part is deciding when we are doing old Possibly if we have a named character vector for |
Other tough part is that we probably want to use the algorithm of |
Could also introduce 3 new arguments, |
To match new
separate_wider_regex()
The text was updated successfully, but these errors were encountered: