Skip to content

Commit 785e53e

Browse files
roll==0 is the same as !roll, so isFALSE won't do
1 parent 190cd98 commit 785e53e

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
@@ -2050,7 +2050,7 @@ replace_dot_alias = function(e) {
20502050

20512051
# see #1010. don't set key when i has no key, but irows is ordered and isFALSE(roll)
20522052
# NB: roll could still be a string like 'nearest', #7146
2053-
if (!isFALSE(roll) && length(irows) != 1L)
2053+
if (!is.character(roll) && roll && length(irows) != 1L)
20542054
return(NULL)
20552055

20562056
new_key <- head(x_key, key_length)

0 commit comments

Comments
 (0)