Skip to content

group_by reorders data.table #623

@matthieugomez

Description

@matthieugomez

group_by reorders data.tables

library(dplyr)
library(data.table)
DF <- data.frame(
  v1 = sample(5, N, TRUE)
)
DF %>% group_by(v1)
setDT(DF) 
DF %>% group_by(v1)

Metadata

Metadata

Assignees

Labels

bugan unexpected problem or unintended behavior

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions