We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I believe the implementation of group_vars.tbl_lazy() needs a tweak.
group_vars.tbl_lazy()
library(tidyverse) library(dbplyr) #> #> Attaching package: 'dbplyr' #> The following objects are masked from 'package:dplyr': #> #> ident, sql memdb_frame(a = 1:3, b = 1:3) %>% count(a, b) %>% group_vars() #> [1] "a" tibble(a = 1:3, b = 1:3) %>% count(a, b) %>% group_vars() #> character(0)
Created on 2019-08-13 by the reprex package (v0.3.0)
The text was updated successfully, but these errors were encountered:
Hmmm, I think the fix should be to provide a count method as below, but count isn't a generic?
count.tbl_lazy <- function(x, ..., wt = NULL, sort = FALSE, name = NULL) { if (!missing(...)) { out <- group_by(x, ..., .add = TRUE, .drop = .drop) } else { out <- x } out <- dplyr::tally(out, wt = !!enquo(wt), sort = sort, name = name) out <- group_by(out, !!!group_vars(x)) out }
Sorry, something went wrong.
Would it be too bad to add the group_by(out, !!!group_vars(x)) to dplyr::count() without introducing a generic?
group_by(out, !!!group_vars(x))
dplyr::count()
@krlmlr we keep patching count() and it keeps breaking in surprising ways.
count()
4dbcb44
No branches or pull requests
I believe the implementation of
group_vars.tbl_lazy()
needs a tweak.Created on 2019-08-13 by the reprex package (v0.3.0)
The text was updated successfully, but these errors were encountered: