Skip to content

Error in order #696

Closed
Closed

Description

@my-R-help

The order function in data.table (or forder according to the error message) doesn't work as expected. Replacing it with base::order works though:

DT <- data.table(a = 1:4, b = 8:5)
for (i in c("a", "b"))
  print(DT[order(DT[, i, with = FALSE])])

This gives the following error in the current data.table development version (1.9.3):

Error in forder(DT, DT[, i, with = FALSE]) :
  Column '1' is type 'list' which is not supported for ordering currently.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions