# Usually,only the result table is relevant:
compare_n_numvars(
.data = mtcars, dep_vars = c("wt", "mpg", "hp"),
indep_var = "cyl",
gaussian = TRUE
)$results
# For a report, result columns may be filtered as needed:
compare_n_numvars(
.data = mtcars, dep_vars = c("wt", "mpg", "hp"),
indep_var = "cyl",
gaussian = FALSE
)$results |>
dplyr::select(Variable, `cyl 4 fn`:`cyl 8 fn`, multivar_p)
Run the code above in your browser using DataLab