Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks
DominiqueMakowski opened this issue Dec 25, 2023 · 1 comment
Open
3 tasks
Labels
feature idea 🔥 New feature or request

Comments

@DominiqueMakowski
Copy link
Member

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").

  • First step is to be able to not write the indices (e.g., detail_indices=FALSE). As one can add the caption manually.
  • Add an argument to add a caption (assuming the table is generated with insight's table system)
  • Automatize the caption: not sure if that's worth the trouble though.
@strengejacke
Copy link
Member

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

@strengejacke strengejacke added the feature idea 🔥 New feature or request label Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature idea 🔥 New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants