Code
summarise2(dplyr::group_by(df, group), mean = mean(.data[[var]]))
Output
# A tibble: 2 x 2
# Groups: group [2]
group mean
<chr> <dbl>
1 A 7
2 B 13
Code
summarise2(dplyr::group_by(df, group), mean = mean(.data$value))
Output
# A tibble: 2 x 2
# Groups: group [2]
group mean
<chr> <dbl>
1 A 7
2 B 13
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.