Skip to content

Commit 9d6f99a

Browse files
use isFalse
1 parent b825415 commit 9d6f99a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/as.data.table.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ as.data.table.list = function(x,
136136

137137
#Handle keep.rownames for vectors (mimicking data.frame behavior)
138138
vector_rownames = NULL
139-
if(!identical(keep.rownames, FALSE)) {
139+
if(!isFALSE(keep.rownames)) {
140140
for(i in seq_len(n)){
141141
xi = x[[i]]
142142
if (!is.null(xi) && is.atomic(xi) && !is.null(names(xi)) && is.null(dim(xi)) && length(names(xi)) > 0) {

0 commit comments

Comments
 (0)