You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
\code{.EACHI} isasymbolpassedto \code{by}; i.e. \code{by=.EACHI}.
15
+
\code{.EACHI} isasymbolpassedto \code{by}; i.e. \code{by=.EACHI}, \code{.NATURAL} isasymbolpassedto \code{on}; i.e. \code{on=.NATURAL}
15
16
}
16
17
\details{
17
18
Thebindingsofthesevariablesarelockedandattemptingtoassigntothemwillgenerateanerror.Ifyouwishtomanipulate \code{.SD} beforereturningit, takea \code{copy(.SD)} first (seeFAQ4.5).Using \code{:=} inthe \code{j} of \code{.SD} isreservedforfutureuseas a (tortuously) flexiblewaytoupdate \code{DT} byreferenceby group (evenwhengroupsarenotcontiguousinanadhocby).
@@ -29,6 +30,8 @@
29
30
30
31
\code{.EACHI} is defined as \code{NULL} but its value is not used. Its usage is \code{by=.EACHI} (or \code{keyby=.EACHI}) which invokes grouping-by-each-row-of-i; see \code{\link{data.table}}'s \code{by} argumentformoredetails.
31
32
33
+
\code{.NATURAL} isdefinedas \code{NULL} butitsvalueisnotused.Itsusageis \code{on=.NATURAL} (alternativeof \code{X[on=Y]}) whichjoinstwotablesontheircommoncolumnnames, performinganaturaljoin; see \code{\link{data.table}}'s \code{on} argument for more details.
34
+
32
35
Note that \code{.N} in \code{i} is computed up-front, while that in \code{j} applies \emph{after filtering in \code{i}}. That means that even absent grouping, \code{.N} in \code{i} can be different from \code{.N} in \code{j}. See Examples.
0 commit comments