Skip to content

Commit

Permalink
another small doc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
daattali authored Apr 14, 2017
1 parent 10de0d5 commit ec00aec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vignettes/programming.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ my_summarise(df, "g2")

Nope.

If you look carefully at the error message, you'll see that it's the same in both cases. `group_by()` works like to `"`: it doesn't evaluate its input; it quotes it.
If you look carefully at the error message, you'll see that it's the same in both cases. `group_by()` works like `"`: it doesn't evaluate its input; it quotes it.

To make this function work, we need to do two things. We need to quote the input ourselves (so `my_summarise()` can take a bare variable name like `group_by`), and then we need to tell `group_by()` not to quote its input (because we've done the quoting).

Expand Down

0 comments on commit ec00aec

Please sign in to comment.