New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[R-Forge #5205] duplicated.data.table should have a "fromLast" argument similar to base #347

Closed
arunsrinivasan opened this Issue Jun 8, 2014 · 0 comments

Comments

Projects
None yet
1 participant
@arunsrinivasan
Member

arunsrinivasan commented Jun 8, 2014

Submitted by: Arun ; Assigned to: Arun ; R-Forge link

As the title implies...

On data.frames:

set.seed(450)
df <- data.frame(x=sample(2, 10,TRUE), y=sample(3, 10, TRUE))

duplicated(df)
#  [1] FALSE FALSE FALSE  TRUE FALSE  TRUE FALSE  TRUE  TRUE  TRUE
duplicated(df, fromLast=TRUE)
#  [1]  TRUE  TRUE  TRUE FALSE FALSE FALSE  TRUE  TRUE FALSE FALSE

On data.tables:

require(data.table)
dt <- data.table(df)
duplicated(dt)
#  [1] FALSE FALSE FALSE  TRUE FALSE  TRUE FALSE  TRUE  TRUE  TRUE

But, doesn't have a fromLast parameter.

@arunsrinivasan arunsrinivasan added this to the v1.9.4 milestone Jun 19, 2014

@arunsrinivasan arunsrinivasan self-assigned this Jun 20, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment