Skip to content

Commit bce42e0

Browse files
committed
..
1 parent 823433b commit bce42e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

man/data.table.Rd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,15 +449,15 @@ DT[, c(.(y=max(y)), lapply(.SD, min)), by=rleid(v), .SDcols=v:b]
449449

450450
# Example: Joining with a system that uses complex IDs (#6627)
451451

452-
# Case 1: Success - Joining a "clean" set of products.
452+
# Case 1: Joining a "clean" set of products.
453453
# Here, `products_clean` only contains IDs with zero imaginary parts.
454454
products_clean = data.table(id = c(101+0i, 103+0i), name = c("widget", "thingamajig"))
455455
sales = data.table(product_id = c(101, 103), units_sold = c(50, 75))
456456

457457
# This join works because the 'id' column in `products_clean` has no non-zero imaginary parts.
458458
products_clean[sales, on = .(id = product_id), nomatch = 0]
459459

460-
# Case 2: Error - Joining a list that includes "bad" IDs.
460+
# Case 2: Joining a list that includes "bad" IDs.
461461
# Here, `products_all` contains an ID with a non-zero imaginary part (102+1i).
462462
products_all = data.table(id = c(101+0i, 102+1i, 103+0i), name = c("widget", "gadget", "thingamajig"))
463463

0 commit comments

Comments
 (0)