Skip to content

Commit

Permalink
Plugged shallow() in duplicated, as mentioned in #617.
Browse files Browse the repository at this point in the history
  • Loading branch information
arunsrinivasan committed Nov 1, 2014
1 parent ac4935c commit 6aac07e
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 @@ -13,7 +13,7 @@ duplicated.data.table <- function(x, incomparables=FALSE, fromLast=FALSE, by=key
res <- rep.int(TRUE, nrow(x))

if (query$use.keyprefix) {
f = uniqlist(x[, query$by, with=FALSE])
f = uniqlist(shallow(x, query$by))
if (fromLast) f = cumsum(uniqlengths(f, nrow(x)))
} else {
o = forderv(x, by=query$by, sort=FALSE, retGrp=TRUE)
Expand Down

0 comments on commit 6aac07e

Please sign in to comment.