Skip to content

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

@arunsrinivasan

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]

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions