-
Notifications
You must be signed in to change notification settings - Fork 169
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
across support seems very limited #534
Comments
This comment has been minimized.
This comment has been minimized.
Makes sense to me but then an explicit error message would be great. But I think there should be a way to translate "one-liners" like in tbl_lazy(mtcars) %>%
dplyr::filter_at(
dplyr::vars(mpg, cyl),
dplyr::all_vars(!is.na(.))
) I do not see a way to replace the |
That will (probably) become something like: mtcars %>%
filter(if_all(c(mpg, cy), ~ !is.na(.x)) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I think @mgirlich is not completely correct with the problem of multiple standard functions in a list.
Would be great if that could be fixed (besides the formula support)! |
Minimal reprex: library(dbplyr)
library(dplyr, warn.conflicts = FALSE)
db <- memdb_frame(x = 1:10, y = 2:11)
# Need to add support for formulas:
db %>% summarise(across(everything(), ~ mean(.x)))
#> Error: Unsupported `.fns` for dbplyr::across()
# Weird failure mode for sd
db %>% summarise(across(everything(), sd))
#> Error: Query contains no columns
db %>% summarise(across(everything(), list(sd)))
#> Error: Result 1 must be a single string, not NULL of length 0 Created on 2021-01-21 by the reprex package (v0.3.0.9001) |
I'll leave #525 for the lack of formula support so this issue can focus on the problem with |
the translation of
across()
seems to be currently quite limited and buggy. Basically, it only seems to work with a single function.Created on 2020-11-09 by the reprex package (v0.3.0)
Session info
The text was updated successfully, but these errors were encountered: