Skip to content

Commit f7ad5e0

Browse files
revise exposition
1 parent fe575ae commit f7ad5e0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

vignettes/datatable-joins.Rmd

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -577,10 +577,9 @@ 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`.
582581

583-
We plan to allow arbitrary expressions eventually, see [#1639](https://github.com/Rdatatable/data.table/issues/1639).
582+
Non-equi joins do not currently support arbitrary expressions (but see [#1639](https://github.com/Rdatatable/data.table/issues/1639)). For example, `on = .(x_int >= i_int)` is valid, but `on = .(x_int >= i_int + 1)` is not valid.
584583

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

0 commit comments

Comments
 (0)