Skip to content

Commit d4dd40d

Browse files
don't need verbose=TRUE
1 parent 49f8bf8 commit d4dd40d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

man/data.table.Rd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,7 @@ DT[, list(MySum=sum(v),
418418
MyMax=max(v)),
419419
by=.(x, y\%\%2)] # by 2 expressions
420420

421-
DT[, .(f=f(a)), by=b, verbose=TRUE,
422-
env=list(f="sum", b="x")] # subtitution via env arg
421+
DT[, .(f=f(a)), by=grp_var, env=list(f="sum", grp_var="x")] # programmatic query with env=
423422

424423
DT[, .(a = .(a), b = .(b)), by=x] # list columns
425424
DT[, .(seq = min(a):max(b)), by=x] # j is not limited to just aggregations

0 commit comments

Comments
 (0)