Skip to content

rownames inconsistently returned #3217

Closed

Description

@jangorecki

latest devel and 3.5.1

library(data.table)

dt <- data.table(id = 1:10, x = rnorm(10))
rownames(dt[, .(id)])
# [1] "1"  "2"  "3"  "4"  "5"  "6"  "7"  "8"  "9"  "10"
rownames(dt[, "id"])
#character(0)
all.equal(dt[, .(id)], dt[, "id"])
#[1] TRUE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions