Skip to content

Commit e1d34c2

Browse files
Document how j results are combined with by via rbindlist (#7651)
1 parent 8d3343c commit e1d34c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

man/data.table.Rd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ data.table(\dots, keep.rownames=FALSE, check.names=FALSE, key=NULL, stringsAsFac
9797
9898
See \href{../doc/datatable-intro.html}{\code{vignette("datatable-intro")}} and \code{example(data.table)}.}
9999
100-
\item{by}{ Column names are seen as if they are variables (as in \code{j} when \code{with=TRUE}). The \code{data.table} is then grouped by the \code{by} and \code{j} is evaluated within each group. The order of the rows within each group is preserved, as is the order of the groups. \code{by} accepts:
100+
\item{by}{ Column names are seen as if they are variables (as in \code{j} when \code{with=TRUE}). The \code{data.table} is then grouped by the \code{by} and \code{j} is evaluated within each group. The order of the rows within each group is preserved, as is the order of the groups. The results are combined using \code{\link{rbindlist}} with \code{use.names=FALSE}. \code{by} accepts:
101101
102102
\itemize{
103103
\item A single unquoted column name: e.g., \code{DT[, .(sa=sum(a)), by=x]}

0 commit comments

Comments
 (0)