Skip to content

mean_table can't call a variable "x" #36

@mbcann01

Description

@mbcann01

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghigh priorityStart here

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions