Skip to content

Commit 81e13ec

Browse files
committed
chmatch not match, thanks Michael
1 parent d19260b commit 81e13ec

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
@@ -1385,7 +1385,7 @@ replace_dot_alias = function(e) {
13851385
byval = i
13861386
bynames = if (missing(on)) head(key(x),length(leftcols)) else names(on)
13871387
allbyvars = NULL
1388-
bysameorder = (haskey(i) && identical(leftcols, match(head(key(i),length(leftcols)), names(i)))) || # leftcols leading subset of key(i); see #4917
1388+
bysameorder = (haskey(i) && identical(leftcols, chmatch(head(key(i),length(leftcols)), names(i)))) || # leftcols leading subset of key(i); see #4917
13891389
(roll==FALSE && is.sorted(f__)) # roll==FALSE is fix for #1010
13901390
## 'av' correct here ?? *** TO DO ***
13911391
xjisvars = intersect(av, names_x[rightcols]) # no "x." for xvars.

0 commit comments

Comments
 (0)