Skip to content

setDT should be more careful on altering its input #2683

@jangorecki

Description

@jangorecki

setDT remove names attribute from input vector, that should not happen.

x = c(a = 4, b = 5)
setDT(list(c = x))[]
names(x) 

Related
#4240
#2487
#1916
#1244
#683

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions