easystats / report

:scroll: :tada: Automated reporting of objects in R
https://easystats.github.io/report/
Other
693 stars 70 forks source link

report_sample(): add indices names in caption instead of table #411

Open DominiqueMakowski opened 8 months ago

DominiqueMakowski commented 8 months ago
report::report_sample(iris, select = c("Sepal.Length", "Petal.Length", "Species"))
#> # Descriptive Statistics
#> 
#> Variable                |     Summary
#> -------------------------------------
#> Mean Sepal.Length (SD)  | 5.84 (0.83)
#> Mean Petal.Length (SD)  | 3.76 (1.77)
#> Species [setosa], %     |        33.3
#> Species [versicolor], % |        33.3
#> Species [virginica], %  |        33.3

Created on 2023-12-25 by the reprex package (v2.0.1)

It would be nice to have the option of moving the indices names (Mean, (SD)) in a table caption (e.g., "Mean (SD) of each variable").

strengejacke commented 6 months ago

Since we mix mean/sd and proportions, how would you indicate the differences?