Closed realzhang closed 1 month ago
A couple things.
1 - An empty dt()
should work with no warnings and I can fix that.
2 - tidytable
doesn't work with data.table
keys.
library(tidytable)
library(data.table)
df <- data.table(a = "a", b = "b", c = 1)
setkey(df, "a")
df %>% haskey()
#> [1] TRUE
as_tidytable(df) %>% haskey()
#> [1] FALSE
Hi Mark: I'd like to return value after setkey() in a pipe within a function, such as:
How to make method 3 work without warning or error? I prefer to using tidytable over data.table style for consistence. Thank you!