Skip to content

[.data.table accept single arg keyby but does not process correctly #1105

Closed

Description

@jangorecki

Supplying only by or only keyby argument to [.data.table might result unexpected results:

library(data.table)
dt <- data.table(a = 1:10, b = 1:5)
# example on keyby, all three cases: no error, no aggregation, returns dt
dt[,,,b]
dt[,,,keyby=b]
dt[keyby=b]

Another thing would be nice to handle below, currently is error

dt[1,,,b] # error

Activity

  1. added a commit that references this issue on Apr 10, 2015
    35a9cec
  2. jangorecki commented on Apr 3, 2020

    @jangorecki
    MemberAuthor

    All cases reported in this issue are already emitting warning, so it was resolved sometime during the last 5 years. Tests that covers this are 1967.521+

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions