I am trying to use the data.table package in order to try to save memory on my data frame (which is 1.8 gig), but I'm having some difficulties with reading just 1 element. when using a data.frame, I would read the element by using the first call, and I would get the value as shown in the second call, without the need for the as.numeric() conversion. Since data.table inherits data.frame, I was expecting the same to be the case. Am I missing something?
DT = data.table(x=letters[1:3], y=1:9)
> DT[1,2]
y
1: 1
> as.numeric(DT[1,2])
[1] 1