I have seen the following two SO questions here and here and both do not clearly explain the purpose of the two reserved symbols .BY
and .EACHI
.
I understand the symbols .N
, .SD
and .SDcols
very well and use them in my code all the time but can't get my head around the real use of .BY
and EACHI
. I have scanned all the data table documentation on CRAN but these two symbols are missing in most and at best give a superficial explanation without concrete examples.
I went through this excellent tutorial on data.tables on CRAN here
and again it misses to explain the symbols .BY
and .EACHI
. Can someone please explain these two symbols with real use case. Preferably take the same airlines example code given in the datatable vignette here?