Skip to content

Commit 1863bc9

Browse files
authored
Update R/as.data.table.R
1 parent bf0db0c commit 1863bc9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/as.data.table.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,8 @@ as.data.table.data.frame = function(x, keep.rownames=FALSE, key=NULL, ...) {
245245
ans
246246
}
247247

248-
as.data.table.data.table = function(x, keep.rownames, key, ...) {
249-
if (missing(key)) key = NULL
248+
as.data.table.data.table = function(x, keep.rownames, key=NULL, ...) {
249+
250250
# as.data.table always returns a copy, automatically takes care of #473
251251
if (any(cols_with_dims(x))) { # for test 2089.2
252252
return(as.data.table.list(x, key = key, ...))

0 commit comments

Comments
 (0)