Skip to content

Commit a98f799

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

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

vignettes/datatable-joins.Rmd

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -577,8 +577,10 @@ When performing non-equi joins (`<`, `>`, `<=`, `>=`), column names are assigned
577577
- The right operand (`i` column) contributes values but does not retain its original name.
578578
- By default, `data.table` does not retain the `i` column used in the join condition unless explicitly requested.
579579

580-
In non-equi joins, the left side of the operator (e.g., x_int in x_int >= i_int) must be a column from x, while the right side (e.g., i_int) must be a column from i. Non-equi joins do not support arbitrary expressions.
581-
For example, on = .(x_int >= i_int) is valid, but on = .(x_int >= i_int + 1) is not valid.
580+
In non-equi joins, the left side of the operator (e.g., `x_int` in `x_int >= i_int`) must be a column from `x`, while the right side (e.g., `i_int`) must be a column from `i`. Non-equi joins do not support arbitrary expressions.
581+
For example, `on = .(x_int >= i_int)` is valid, but `on = .(x_int >= i_int + 1)` is not valid.
582+
583+
We plan to allow arbitrary expressions eventually, see [#1639](https://github.com/Rdatatable/data.table/issues/1639).
582584

583585
```{r}
584586
x <- data.table(x_int = 2:4, lower = letters[1:3])

0 commit comments

Comments
 (0)