0

It seems that when dtplyr is installed with dplyr and data.table I get this issue

library(dplyr)
library(data.table)
library(dtplyr)

dt1 = mtcars

# works as expected
dt1 %>% count(cyl)

# # A tibble: 3 x 2
#     cyl     n
#   <dbl> <int>
# 1     4    11
# 2     6     7
# 3     8    14

# used to work but not now
setDT(dt1) %>% count(cyl)

# Error in .subset(x, j) : invalid subscript type 'list'

That used to work, but not at the moment. Why is this happening?

Also, when I run this process without dtplyr it works, but without having the advantages that dtplyr offers.

I'm using up to date versions of those packages (dplyr 0.7.0, data.table 1.10.4, dtplyr 0.0.2).

Frank
  • 66,179
  • 8
  • 96
  • 180
AntoniosK
  • 15,991
  • 2
  • 19
  • 32

0 Answers0