Skip to content

Commit

Permalink
fix: mutable dt alias from unique.data.table Rdatatable#5932
Browse files Browse the repository at this point in the history
Thanks to @brookslogan for the original bug report.
  • Loading branch information
dshemetov committed Feb 24, 2024
1 parent 82f559f commit 1faa873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/duplicated.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ unique.data.table = function(x, incomparables=FALSE, fromLast=FALSE, by=seq_alon
if (!isFALSE(incomparables)) {
.NotYetUsed("incomparables != FALSE")
}
if (nrow(x) <= 1L) return(x)
if (nrow(x) <= 1L) return(copy(x))
if (!length(by)) by = NULL #4594
o = forderv(x, by=by, sort=FALSE, retGrp=TRUE)
if (!is.null(cols)) {
Expand Down

0 comments on commit 1faa873

Please sign in to comment.