ddsjoberg / gtsummary

Presentation-Ready Data Summary and Analytic Result Tables
http://www.danieldsjoberg.com/gtsummary
Other
1.06k stars 128 forks source link

Add `tbl_stub()` function? #1982

Open ddsjoberg opened 2 months ago

ddsjoberg commented 2 months ago

I think this could be useful when constructing very bespoke tables. This function could return essentially the label column of a table, and be a place where we can begin adding custom results on to.

Something to think about....

Melkiades commented 2 months ago

This can be very useful! We should pursue this! do you think tbl_ is the right prefix?

ddsjoberg commented 2 months ago

This can be very useful! We should pursue this! do you think tbl_ is the right prefix?

I thought it was the right prefix, but now I am questioning 😆 All functions that create tables begin with tbl_*(). What did you have in mind?

Melkiades commented 2 months ago

This can be very useful! We should pursue this! do you think tbl_ is the right prefix?

I thought it was the right prefix, but now I am questioning 😆 All functions that create tables begin with tbl_*(). What did you have in mind?

I was thinking that we might want to phrase it as a getter/setter, but if you can build up the table from the stubhead label, it makes sense to have it tbl_*