-
Notifications
You must be signed in to change notification settings - Fork 57
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
Support tidyselect #447
Comments
It's also worth noting that other tidyselect functions work just fine - library(dtplyr)
library(dplyr, warn.conflicts = FALSE)
iris %>%
lazy_dt() %>%
select(starts_with("S"))
#> Source: local data table [150 x 3]
#> Call: `_DT1`[, .(Sepal.Length, Sepal.Width, Species)]
#>
#> Sepal.Length Sepal.Width Species
#> <dbl> <dbl> <fct>
#> 1 5.1 3.5 setosa
#> 2 4.9 3 setosa
#> 3 4.7 3.2 setosa
#> 4 4.6 3.1 setosa
#> 5 5 3.6 setosa
#> 6 5.4 3.9 setosa
#> # ℹ 144 more rows
#>
#> # Use as.data.table()/as.data.frame()/as_tibble() to access results Hope this helps! If you have any questions let me know. |
Is there any way to add a function named such as data.table::as.data.table(iris) |>
dtplyr::lazy_dt(immutable = F) |>
dplyr::mutate(dplyr::across(tidyselect::where(is.double), round)) |>
data.table::as.data.table() we can replace Is that possible or already have function like this ? Now I replace That But those are not very declarative. |
With dtplyr not all tidyselect verbs are supported. Can this be implemented?
Error in
across()
:! This tidyselect interface doesn't support predicates.
Backtrace:
The text was updated successfully, but these errors were encountered: