Skip to content

Commit

Permalink
requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nitish jha authored and nitish jha committed Aug 9, 2024
1 parent 1640a18 commit 8297a4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions man/data.table.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -419,8 +419,8 @@ DT[, list(MySum=sum(v),
MyMax=max(v)),
by=.(x, y\%\%2)] # by 2 expressions

DT[, .(f=f(a), m=g(a)), by=b, verbose=TRUE,
env=list(f="sum", g=mean, b="x")] # subtitution via env arg
DT[, .(f=f(a)), by=b, verbose=TRUE,
env=list(f="sum", b="x")] # subtitution via env arg

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

0 comments on commit 8297a4f

Please sign in to comment.