We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
data.table 1.10.5, R 3.2.2.
split.data.frame preserves attributes from the original, but split.data.table drops them.
library(data.table) dt=data.table(x=1:10) setattr(dt, "a", 5) attr(split(dt,rep(1:2,each=5))[[1]],"a") # NULL (expect 5) attr(split.data.frame(dt,rep(1:2,each=5))[[1]],"a") # 5
The text was updated successfully, but these errors were encountered:
This should automatically works once #995 will be resolved.
Sorry, something went wrong.
Recent changes made by Matt in 3937881 solved this issue
library(data.table) dt=data.table(x=1:10) setattr(dt, "a", 5) attr(split(dt,rep(1:2,each=5))[[1]],"a") #[1] 5 attr(split.data.frame(dt,rep(1:2,each=5))[[1]],"a") #[1] 5
unit tests for split.data.table preserving attributes, #2047
0ef474f
unit tests for split.data.table preserving attributes, #2047 (#3227)
466d017
jangorecki
No branches or pull requests
data.table 1.10.5, R 3.2.2.
split.data.frame preserves attributes from the original, but split.data.table drops them.
The text was updated successfully, but these errors were encountered: