Skip to content

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

Closed

Description

@arunsrinivasan

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]

Activity

  1. arunsrinivasan commented on Jun 19, 2014

    @arunsrinivasan
    MemberAuthor

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

  2. added this to the v1.9.4 milestone on Jun 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions