Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Grouped operations are slow #119

@nathaneastwood

Description

@nathaneastwood
d <- data.frame(
  g1 = sample(LETTERS), 40000, TRUE),
  g2 = sample(LETTERS), 40000, TRUE),
  g3 = sample(LETTERS), 40000, TRUE),
  x1 = runif(40000),
  x2 = runif(40000),
  x3 = runif(40000)
)

d %>% group_by(g1, g2, g3) %>% summarise(x1 = mean(x1), x2 = max(x2), x3 = min(x3))

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions