Skip to content

a bug with group_by + mutate_each ? #2049

@GodefroyClair

Description

@GodefroyClair

Hi,
With dplyr Version: 0.4.3 and R :
version 3.3.0 (2016-05-03)
Platform: x86_64-apple-darwin14.5.0 (64-bit)
Running under: OS X 10.11.6 (El Capitan)
this code :

set.seed(7)
df <- data.frame(x=10*runif(9), y=20*rnorm(9), group=rep(c("a","b","c"),3))
df2 <- df %>% group_by(group) %>% mutate_each(funs(scale))

passes ok and if I call df2, I can see its content. But if I do View(df2) or str(df2) I got an error

Error in FUN(X[[i]], ...) :
dims [product 3] do not match the length of object [9]

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