Skip to content

Commit f00255f

Browse files
Merge pull request #6876 from Mukulyadav2004/resolve_error_message
explicitly specify keyword 'on = .NATURAL'
2 parents 0909048 + fdc45ec commit f00255f

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 the 'on=' argument (see ?data.table); by keying x (i.e., x is sorted and marked as such, see ?setkey); or by using 'on = .NATURAL' to indicate using the shared 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.")
452452
}
453453
} else if (identical(substitute(on), as.name(".NATURAL"))) {
454454
naturaljoin = TRUE

0 commit comments

Comments
 (0)