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
Submitted by: Chong Wang; Assigned to: Nobody; R-Forge link
when the data.table DT is saved to an environment and then reloaded, adding new columns doesn't have effect on the data.table. (see data.table B)
DT
B
require(data.table) env <- new.env(parent = emptyenv()) DT <- data.table(x = 1:3) assign("DT", DT, envir=env) env$DT[, y := 3] A <- copy(env$DT) save(env, file="temp.rda") rm (DT) rm (env) load("temp.rda") env$DT[, z:=10] B <- copy(env$DT) env$DT <- copy(env$DT) env$DT[, z:=10] C <- copy(env$DT)
Now, looking at the data.tables A, B and C:
A
C
A # x y #1: 1 3 #2: 2 3 B # x y #1: 1 3 #2: 2 3 C # x y z #1: 1 3 10 #2: 2 3 10
In principal, B should have the same content as C.
Thanks!
The text was updated successfully, but these errors were encountered:
94f56f3
Updated setDT similar to #479 to handle setDT(L$a).
bfac500
arunsrinivasan
No branches or pull requests
Submitted by: Chong Wang; Assigned to: Nobody; R-Forge link
when the data.table
DT
is saved to an environment and then reloaded, adding new columns doesn't have effect on the data.table. (see data.tableB
)Now, looking at the data.tables
A
,B
andC
:In principal,
B
should have the same content asC
.Thanks!
The text was updated successfully, but these errors were encountered: