Skip to content

Commit 165281a

Browse files
explicitly specify keyword 'on = .NATURAL'
1 parent 0909048 commit 165281a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/data.table.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ replace_dot_alias = function(e) {
448448
if (is.data.frame(i)) {
449449
if (missing(on)) {
450450
if (!haskey(x)) {
451-
stopf("When i is a data.table (or character vector), the columns to join by must be specified using 'on=' argument (see ?data.table), by keying x (i.e. sorted, and, marked as sorted, see ?setkey), or by sharing column names between x and i (i.e., a natural join). Keyed joins might have further speed benefits on very large data due to x being sorted in RAM.")
451+
stopf("When i is a data.table (or character vector), the columns to join by must be specified using 'on=' argument (see ?data.table), by keying x (i.e. sorted, and, marked as sorted, see ?setkey), or by sharing column names between x and i (i.e., a natural join) with the keyword 'on = .NATURAL'. Keyed joins might have further speed benefits on very large data due to x being sorted in RAM.")
452452
}
453453
} else if (identical(substitute(on), as.name(".NATURAL"))) {
454454
naturaljoin = TRUE

0 commit comments

Comments
 (0)