Closed luispfonseca closed 11 months ago
Just to confirm, it works with dplyr:
library(grid)
library(ggplotify)
p1 <- as.grob(~barplot(1:10))
library(dplyr)
#>
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#>
#> filter, lag
#> The following objects are masked from 'package:base':
#>
#> intersect, setdiff, setequal, union
tibble(
a = rep(1, 2),
grob = rep(list(p1), 2)
) %>%
distinct(a, grob)
#> # A tibble: 1 × 2
#> a grob
#> <dbl> <list>
#> 1 1 <gTree>
Created on 2023-10-20 with reprex v2.0.2
All set - thanks for catching this!
# install.packages("pak")
# pak::pak("markfairbanks/tidytable")
library(tidytable)
df <- tidytable(x = 1, l = list(1, 1))
distinct(df)
#> # A tidytable: 1 × 2
#> x l
#> <dbl> <list>
#> 1 1 <dbl [1]>
See reprex below. Possible context in https://github.com/Rdatatable/data.table/issues/3332
Created on 2023-10-20 with reprex v2.0.2