Skip to content

Commit 4407f1c

Browse files
\n exceeding characters
1 parent d08b70d commit 4407f1c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

man/groupingsets.Rd

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,14 @@ cube(DT, j = c(list(count=.N), lapply(.SD, sum)), by = c("color","year","status"
8484
groupingsets(DT, j = c(list(count=.N), lapply(.SD, sum)), by = c("color","year","status"),
8585
sets = list("color", c("year","status"), character()), id=TRUE)
8686
# Using jj argument(enables access to variables from outer environments)
87-
groupingsets(DT, jj = substitute(c(list(count=.N), lapply(.SD, sum))), by = c("color","year","status"), # Basic jj usage with substitute()
87+
groupingsets(DT, jj = substitute(c(list(count=.N), lapply(.SD, sum))),
88+
by = c("color","year","status"), # Basic jj usage with substitute()
8889
sets = list("color", c("year","status"), character()), id = TRUE, .SDcols = "value")
89-
groupingsets(DT, jj = substitute(lapply(.SD, sum)), by = c("color","year","status"), # Simple aggregation with jj
90+
groupingsets(DT, jj = substitute(lapply(.SD, sum)),
91+
by = c("color","year","status"), # Simple aggregation with jj
9092
sets = list("color", c("year","status"), character()), id = TRUE, .SDcols = "value")
91-
groupingsets(DT, jj = substitute(list(count = .N, total = sum(value))), by = c("color","year","status"), # jj with direct column references
93+
groupingsets(DT, jj = substitute(list(count = .N, total = sum(value))),
94+
by = c("color","year","status"), # jj with direct column references
9295
sets = list("color", c("year","status"), character()), id = TRUE)
9396
}
9497
\keyword{ data }

0 commit comments

Comments
 (0)