Skip to content

Add an optional argument (key= ...) to as.data.table #890

@cooldome

Description

@cooldome

This is for convenience, a bit tired of writing:

dt = as.data.table(x)
setkeyv(dt, c("s1", "s2"))
dt

I would be much nicer to have

dt = as.data.table(x, key = c("s1", "s2"))

Thank you,
You are doing amazing work with data.table.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions