Skip to content

Wrong behaviour DT[, i, with=FALSE]  #2109

@cguill95

Description

@cguill95

Hi,

I noticed a strange type of behaviour using the with=FALSE parameter in a data table.
Maybe worth mentioning I am using data table version 1.10.4. on R 3.3.2

Here is a reproducible example;

library(data.table)
test <- data.table(mtcars)
i <- 3L

# Print 3rd column
test[, i, with=FALSE]

# Print 4th column
test[, i + 1L, with=FALSE]

# Print all but 3rd column
test[, i - 1L, with=FALSE]

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions