This doesn't work:
library(tidyverse)
library(bfuncs)
df <- tibble(
g = c(rep("a", 5000), rep("b", 5000)),
x = runif(10000, 0, 100)
)
df %>% group_by(g) %>% bfuncs::mean_table(x)
Error in summarise_impl(.data, dots) :
Evaluation error: `expr` must quote a symbol, scalar, or call.
But this does work:
df <- tibble(
g = c(rep("a", 5000), rep("b", 5000)),
a = runif(10000, 0, 100)
)
df %>% group_by(g) %>% bfuncs::mean_table(a)
This doesn't work:
But this does work: