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

Bug: dtplyr doesn't support using dplyr::cur_column in dplyr::across #480

Open
Longfei2 opened this issue Nov 7, 2024 · 2 comments
Open
Labels
bug an unexpected problem or unintended behavior

Comments

@Longfei2
Copy link

Longfei2 commented Nov 7, 2024

No description provided.

@Longfei2
Copy link
Author

Longfei2 commented Nov 7, 2024

please see issue #314

@Longfei2
Copy link
Author

Longfei2 commented Nov 7, 2024

You can see this example:

a <- data.frame(x1 =c(0, 1), x2 =c(1,0)) %>%
  dtplyr::lazy_dt() %>%
  dplyr::mutate(dplyr::across(.cols = c("x1", "x2"),
                                .fns = ~ ifelse(is.na(.x) | !.x, "", sub("x", "", dplyr::cur_column()
                                                                         )
                                                )
                                )
                  ) %>%
  dplyr::as_tibble()

Image
Image

@markfairbanks markfairbanks added the bug an unexpected problem or unintended behavior label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants