Skip to content

Commit db78319

Browse files
author
Pavel Marek
committed
[GR-36987] Revert "Remove plot function call from data.table examples"
This reverts commit fadf5c4.
1 parent baf2692 commit db78319

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

com.oracle.truffle.r.pkgs/data.table/man/data.table.Rd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,9 @@ DT[, {tmp <- mean(y);
396396
}, by=x] # anonymous lambdain 'j', j accepts any valid
397397
# expression. TO REMEMBER: every element of
398398
# the list becomes a column in result.
399+
pdf("new.pdf")
400+
DT[, plot(a,b), by=x] # can also plot in 'j'
401+
dev.off()
399402
400403
# using rleid, get max(y) and min of all cols in .SDcols for each consecutive run of 'v'
401404
DT[, c(.(y=max(y)), lapply(.SD, min)), by=rleid(v), .SDcols=v:b]

0 commit comments

Comments
 (0)