Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unique.data.table could support list column same as unique.data.frame #1229

Closed
jangorecki opened this issue Jul 16, 2015 · 1 comment
Closed

Comments

@jangorecki
Copy link
Member

It could support below case the same way as data.frame do, or if not support in data.table pkg then maybe redirects to data.frame method to perform expected operation instead of error.

library(data.table)
d1 <- data.table(l = list(list(letters[1:2]),list(Sys.time()),list(1:10),list(letters[1:2])))
unique(d1)
#Error in forderv(x, by = query$by, sort = FALSE, retGrp = TRUE) : 
#  First column being ordered is type 'list', not yet supported
unique(as.data.frame(d1))
#                               l
#1                          a, b
#2                    1437072565
#3 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
@arunsrinivasan
Copy link
Member

This'll be automatically taken care of when data.table:::forderv() can handle list columns (for which there's an issue somewhere).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants