Skip to content

Commit 0e53a5a

Browse files
committed
adjust method dispatch
1 parent 22a8229 commit 0e53a5a

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
@@ -219,7 +219,7 @@ as.data.table.data.frame = function(x, keep.rownames=FALSE, key=NULL, ...) {
219219
class_orig = class(x)
220220
x = as.data.frame(x)
221221
if (identical(class(x), class_orig)) setattr(x, "class", "data.frame") # cater for cases when as.data.frame can generate a loop #6874
222-
return(as.data.table(x, keep.rownames=keep.rownames, key=key, ...))
222+
return(as.data.table.data.frame(x, keep.rownames=keep.rownames, key=key, ...))
223223
}
224224
if (!isFALSE(keep.rownames)) {
225225
# can specify col name to keep.rownames, #575; if it's the same as key,

0 commit comments

Comments
 (0)