I have a data.table score
of size 900Mb. There is a column datetime
which is essentially a datetime in the format ("2018-05-25 10:10:53:000000")
. I am trying to convert the class character
of this particular column to POSIXlt
using the following code:
score[,newdate := as.POSIXlt.character(score[["datetime"]],tz="IST",format="%Y-%m-%d %H:%M:%S")][,datetime:=NULL]
This operation renders a data.table of size 211 GB. What is happening here. Please help.
dput(head(score))
structure(list(id1 = c(12234398L, 323437283L, 12343344L,
545465653L, 312342343L, 22344232L), id2 = c(216231535L,
324345453L, 345474698L, 87787950L, 656565531L, 565656657L),
Score = c(756L, 777L, 788L, 234L, 656L, 788L), datetime = c("2017-05-08 00:00:00.0000000",
"2018-07-12 01:24:46.0000000", "2015-16-02 00:00:00.0000000",
"2016-03-22 23:06:45.0000000", "2016-07-14 12:23:45.0000000",
"2014-05-03 03:33:13.0000000")), .Names = c("id1",
"id2", "Score", "datetime"), class = c("data.table",
"data.frame"), row.names = c(NA, -6L), .internal.selfref = <pointer:
0x190cc98>)