group_by works with string args, but it shouldn't #410
If the grouping var is a string, it should be treated as a new column, or something like that.
These shouldn't have identical results, but they are:
g <- group_by(mtcars, cyl) %>% summarise(foo = n()) # Source: local data frame [3 x 2] # # cyl foo #1 4 11 #2 6 7 #3 8 14 gs <- group_by(mtcars, "cyl") %>% summarise(foo = n()) identical(g, gs) # TRUE
The text was updated successfully, but these errors were encountered: