We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13ed346 commit 311f145Copy full SHA for 311f145
R/as.data.table.R
@@ -146,12 +146,12 @@ as.data.table.list = function(x,
146
if (is.null(xi)) next # eachncol already initialized to 0 by integer() above
147
if (check_rownames && is.null(rownames_)) {
148
if (is.null(dim(xi))) {
149
- if (!is.null(nm <- names(xi)) && any(nzchar(nm))) {
+ if (!is.null(nm <- names(xi))) {
150
rownames_ = nm
151
x[[i]] = unname(xi)
152
}
153
} else {
154
- if (!is.null(nm <- rownames(xi)) && any(nzchar(nm))) {
+ if (!is.null(nm <- rownames(xi))) {
155
156
157
0 commit comments