added as.factor in unpired stats

This commit is contained in:
Tanushree Tunstall 2022-08-05 19:58:31 +01:00
parent 9c955cddc0
commit ae8bc8ae85

View file

@ -8,6 +8,7 @@ lf_unpaired_stats <- function(lf_data
, my_paired = FALSE
, stat_adj = "none"){
lf_data[[lf_stat_group]] = as.factor(lf_data[[lf_stat_group]])
stat_formula = as.formula(paste0(lf_stat_value, "~", lf_stat_group))
my_stat_df = compare_means(stat_formula