[datatable-help] What is going on with R 3.1 ?

Michele carrieromichele at gmail.com
Thu Apr 17 19:15:54 CEST 2014


If I try to /copy()/ the tables to re-create the pointers all the tables get
the *same* one, always ending in 788 (opening another R session I get the
same result, same pointers accross the table, ending in 788):
> dt <- readRDS("dt.RDS")> dt1 <- readRDS("dt1.RDS")>
> dput(copy(dt))structure(list(id = 1:5, var = c(-0.626453810742332,
> 0.183643324222082, -0.835628612410047, 1.59528080213779, NA)), .Names =
> c("id", "var"), row.names = c(NA, -5L), class = c("data.table",
> "data.frame"), .internal.selfref = <pointer: 0x00000000003e0788>)>
> dput(copy(dt1))structure(list(id = 1:10, var2 = c(9.56605515060971,
> 9.83445938796679, 9.14481066107107, 10.5308762543727, NA, NA,
> 9.45024506381369, 10.0544601882071, 10.7019565371199, 9.60325830155958),
> var3 = c(99.6542887323489, 100.659231456233, 100.282028460177,
> 101.423474800432, 98.4134121985332, NA, 98.0406472259105,
> 100.253194731594, 100.759881151841, 99.7930775536395)), .Names = c("id",
> "var2", "var3"), row.names = c(NA, -10L), class = c("data.table",
> "data.frame"), sorted = "id", .internal.selfref = <pointer:
> 0x00000000003e0788>)




--
View this message in context: http://r.789695.n4.nabble.com/What-is-going-on-with-R-3-1-tp4689002p4689005.html
Sent from the datatable-help mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/datatable-help/attachments/20140417/3d070114/attachment.html>


More information about the datatable-help mailing list