Comments (1)
Dear @barretmonchka , thanks for the post. 🍁
I think these two stackoverflow posts will get you started
https://stackoverflow.com/questions/76258280
https://stackoverflow.com/questions/71954590
To be honest, I think those solutions get you most of the way there, but it would be difficult to cover every case you mentioned.
BUT, the updates that are coming in the next release of gtsummary, could make your request somewhat trivial. I am hoping to make a soft release in mid-June to request feedback from the community about the updates before submitting the updated version to CRAN.
In the meantime, you could check out the card_summary()
function in the v2.0
branch here on GitHub. Essentially, what you'll do is create an Analysis Results Dataset (ARD), then update the formatting functions to convert the statistics into strings that meet your standards. You'd then pass that ARD to card_summary()
to create the table.
This work is in beta, so please refrain from making feature requests or bug reports on that work until the soft release is made (when I merge v2.0 branch into main).
from gtsummary.
Related Issues (20)
- Feature request: Extend `tbl_merge` to all `gt` tables HOT 2
- Review `tbl_custom_summary()`
- Bug Report: Factor level with `NA` label causes "Column stat_n doesn't exist" error (e.g. created by forcats). HOT 3
- Improve `tbl_summary()` error message for continuous2 type
- v2.0 Add unit test HOT 1
- tbl_strata coding issues HOT 1
- Bug Report: tbl_strata does not treat the values in a small stratum (i.e. with only 7 values) as continuous (despite specification that it should), treats them as categorical HOT 1
- v2.0 Create `card_continuous()`
- Questions about `card_*()` functions. HOT 1
- `as_kable_extra()` indentation update
- How to reduce the size of the repo....it's gotten rather large.
- `tbl_strata()` could use a re-write
- v2.0 `tbl_wide_summary()` ? HOT 1
- Relax requirement of `ard_missing()` results in `tbl_summary()`
- Function to initialize gtsummary object
- `quiet` is passed as NULL when in `tbl_strata` HOT 1
- I think the theme for default percent formatting is not being used....
- Error in `pier_*` functions when retrieved names are not unique
- Address `TODO` in the scripts
- Register `pkgdown_print.gtsummary()` method
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gtsummary.