I'm curently using R package data.table
to process big datasets.
I'm wondering if there is a difference between the syntax
DT[,v]
and the syntax :
DT$v
if DT
is my data.table
object and v
the variable I want to select.
I know that the dollar sign is usually used for data frames and that [,v]
is always used in data.table
examples. However they both work and seem to give (in my experience with 5million rows) similar times to execute.
Do you know if they are processed differently and if one is more efficient when processing even huger datasets ?