Skip to content

Commit eb50409

Browse files
restore
1 parent ed472a2 commit eb50409

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
@@ -165,7 +165,7 @@ as.data.table.list = function(x,
165165
if (is.matrix(xi) && NCOL(xi)<=1L && is.null(colnames(xi))) { # 1 column matrix naming #4124
166166
xi = x[[i]] = c(xi)
167167
} else {
168-
xi = x[[i]] = as.data.table(xi, keep.rownames=FALSE) # we will never allow a matrix to be a column; always unpack the columns
168+
xi = x[[i]] = as.data.table(xi, keep.rownames=keep.rownames) # we will never allow a matrix to be a column; always unpack the columns
169169
}
170170
}
171171
# else avoid dispatching to as.data.table.data.table (which exists and copies)

0 commit comments

Comments
 (0)