Skip to content

count not working #159

@ds-jim

Description

@ds-jim

Count doesn't seem to work , I'm using R 4.0 and dtplyr 1.0.1.9000

Borrowed the repex that was shown to work from issue 97 #97

suppressPackageStartupMessages(library(dplyr))
library(dtplyr)

mtcars %>%  
  group_by(vs) %>% 
  count(am)
#> # A tibble: 4 x 3
#> # Groups:   vs [2]
#>      vs    am     n
#>   <dbl> <dbl> <int>
#> 1     0     0    12
#> 2     0     1     6
#> 3     1     0     7
#> 4     1     1     7

mtcars %>%  
  lazy_dt() %>% 
  group_by(vs) %>% 
  count(am)
#> Source: local data table [?? x 4]
#> Call:   copy(`_DT1`)[, `:=`(.add = TRUE), keyby = .(vs)][, .(n = .N), 
#>     keyby = .(am, .add, .drop)]
#> Error in eval(bysub, x, parent.frame()): object '.drop' not found

Created on 2020-06-05 by the reprex package (v0.3.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behaviordplyr-compat 💞dplyr compatibility issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions