library(dplyr)
library(dbplyr)
memdb_frame(x = 1:2, y = 1) %>%
group_by(x) %>%
distinct(y)
#> # Source: lazy query [?? x 2]
#> # Database: sqlite 3.33.0 [:memory:]
#> # Groups: x
#> y
#> <dbl>
#> 1 1
tibble(x = 1:2, y = 1) %>%
group_by(x) %>%
distinct(y)
#> # A tibble: 2 x 2
#> # Groups: x [2]
#> x y
#> <int> <dbl>
#> 1 1 1
#> 2 2 1
Created on 2020-11-10 by the reprex package (v0.3.0)
Session info