Skip to content

Commit 1bb1e46

Browse files
rm ws
1 parent 7fe757d commit 1bb1e46

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

R/as.data.table.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,14 @@ as.data.table.list = function(x,
140140
# Handle keep.rownames for vectors (mimicking data.frame behavior)
141141
vector_rownames = NULL
142142
check_rownames = !isFALSE(keep.rownames)
143-
143+
144144
for (i in seq_len(n)) {
145145
xi = x[[i]]
146146
if (is.null(xi)) next # eachncol already initialized to 0 by integer() above
147147
if (check_rownames && is.null(vector_rownames)) {
148148
# Check for named vectors
149149
if (is.atomic(xi) && !is.null(names(xi)) && is.null(dim(xi))) {
150-
valid_names = names(xi)
150+
valid_names = names(xi)
151151
if (any(nzchar(valid_names))) {
152152
vector_rownames = valid_names
153153
x[[i]] = unname(xi)
@@ -160,7 +160,7 @@ as.data.table.list = function(x,
160160
vector_rownames = valid_names
161161
}
162162
}
163-
}
163+
}
164164
if (!is.null(dim(xi)) && missing.check.names) check.names=TRUE
165165
if ("POSIXlt" %chin% class(xi)) {
166166
warningf("POSIXlt column type detected and converted to POSIXct. We do not recommend use of POSIXlt at all because it uses 40 bytes to store one date.")

0 commit comments

Comments
 (0)