kassambara / rstatix

Pipe-friendly Framework for Basic Statistical Tests in R
https://rpkgs.datanovia.com/rstatix/
432 stars 51 forks source link

Passing lazyevals to statistical function not working #196

Open martin-forbes opened 8 months ago

martin-forbes commented 8 months ago

Say I create a variable with a name as so:

parameter1 <- quote(Column1) comparison1<- quote(y_axis) comparison2<- quote(group)

library(lazyeval) p_stats <- df%>% group_by (Metabolite, !!parameter1 ) %>% t_test( !!comparison1 ~ !!comparison2)

Error

Column !!comparison2 doesn't exist.

Is it possible to extract variables like this within the t_test function?