Skip to content
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 #5008] .SD drops columns if name is duplicated #86

Closed
arunsrinivasan opened this issue Jun 8, 2014 · 1 comment
Closed

[R-Forge #5008] .SD drops columns if name is duplicated #86

arunsrinivasan opened this issue Jun 8, 2014 · 1 comment
Assignees
Labels
Milestone

Comments

@arunsrinivasan
Copy link
Member

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

When duplicate column names exist, .SD drops columns

DT <- data.table(x=1:3, x=11:13)

## Works Fine
DT[, names(DT)=="x", with=FALSE]

## Looses Second Column
DT[, names(DT)=="x", with=FALSE][, .SD]
@arunsrinivasan
Copy link
Member Author

Also updated this SO post and here's the commit that fixed handling duplicate names: 9f0a7f8

@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
Labels
Projects
None yet
Development

No branches or pull requests

1 participant