Skip to content

Commit 008cadf

Browse files
Update vignettes/datatable-joins.Rmd
Co-authored-by: Michael Chirico <[email protected]>
1 parent da0931d commit 008cadf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vignettes/datatable-joins.Rmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -588,9 +588,9 @@ i <- data.table(i_int = c(2, 4, 5), UPPER = LETTERS[1:3])
588588
x[i, on = .(x_int >= i_int)]
589589
```
590590
Key Takeaways:
591-
- The name of the output column (x_int) comes from x, but the values come from i_int in i.
592-
- The last row contains NA because no rows in x match the last row in i (UPPER = "C").
593-
- Multiple rows in x are returned to match the first row in i with UPPER = "A".
591+
- The name of the output column (`x_int`) comes from `x`, but the values come from `i_int` in `i`.
592+
- The last row contains `NA` because no rows in `x` match the last row in `i` (`UPPER == "C"`).
593+
- Multiple rows in `x` are returned to match the first row in `i` with `UPPER == "A"`.
594594

595595
If you want to keep the i_int column from i, you need to explicitly select it in the result:
596596

0 commit comments

Comments
 (0)