The official vignette, "Reference semantics", is the best introduction to this topic.
A reminder: DT[where, select|update|do, by]
syntax is used to work with columns of a data.table.
i
argumentj
argumentThese two arguments are usually passed by position instead of by name.
All modifications to columns can be done in j
. Additionally, the set
function is available for this use.