From 0a3456cc67bcfc03b7a91f656759c53f4f62472b Mon Sep 17 00:00:00 2001 From: David Date: Mon, 10 Apr 2023 05:40:21 +0200 Subject: [PATCH] Fixing typo in functions chapter (#1417) --- functions.qmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.qmd b/functions.qmd index 54eb793..1a35711 100644 --- a/functions.qmd +++ b/functions.qmd @@ -403,7 +403,7 @@ Embracing a variable means to wrap it in braces so (e.g.) `var` becomes `{{ var Embracing a variable tells dplyr to use the value stored inside the argument, not the argument as the literal variable name. One way to remember what's happening is to think of `{{ }}` as looking down a tunnel --- `{{ var }}` will make a dplyr function look inside of `var` rather than looking for a variable called `var`. -So to make grouped_mean`()` work, we need to surround `group_var` and `mean_var()` with `{{ }}`: +So to make grouped_mean`()` work, we need to surround `group_var` and `mean_var` with `{{ }}`: ```{r} grouped_mean <- function(df, group_var, mean_var) {