Skip to content

group_by returns "Error: index out of bounds" when length of column name is g.t 39 characters #705

@elad-custora

Description

@elad-custora

When we do:

library('dplyr')
df <- data.frame(a = 1:10, b = 1:10)
names(df) <- c('AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', 'b')
df %>% group_by(AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA)

All is well. But:

names(df) <- c('AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', 'b')
df %>% group_by(AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA)
Error: index out of bounds

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