Skip to content

[.data.table fails with complex/raw columns #982

@richierocks

Description

@richierocks

To reproduce, try:

DT <- data.table(x = as.complex(1:5))
DT[1]
## Error in `[.data.table`(DT, 1) : Unknown column type 'complex'

Similarly:

DT <- data.table(x = as.raw(1:5))
DT[1]
## Error in `[.data.table`(DT, 1) : Unknown column type 'raw'

The problem appears to be originating from the line:

ans[[target]] = .Call(CsubsetVector,x[[source]],irows)

Loosely related issue: #602

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions