Skip to content

Commit

Permalink
trailing ws
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico committed Sep 29, 2024
1 parent e22e768 commit 9d08a47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/data.table.R
Original file line number Diff line number Diff line change
Expand Up @@ -2933,7 +2933,7 @@ setDT = function(x, keep.rownames=FALSE, key=NULL, check.names=FALSE) {
# fix for #1078 and #1128, see .resetclass() for explanation.
setattr(x, "class", .resetclass(x, 'data.frame'))
setalloccol(x)

if (!is.null(rn)) {
nm = c(if (is.character(keep.rownames)) keep.rownames[1L] else "rn", names(x))
x[, (nm[1L]) := rn]
Expand Down

0 comments on commit 9d08a47

Please sign in to comment.