ddsjoberg / gtsummary

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

Questions about `card_*()` functions. #1720

Closed ddsjoberg closed 3 months ago

ddsjoberg commented 3 months ago
  1. We have the prefix tbl_*() and these functions ingest data frames and make gtsummary tables. We have cards::ard_() that also ingest data frame and return ARD objects. Is card_*() the best prefix for a function that ingests an ARD object and creates a gtsummary table?
  2. The card_summary() functions accept tidyselect notation, but the current implementation of card_continuous() does not. Should this be changed?
ddsjoberg commented 3 months ago

We will call it tbl_ard_summary() for now. We may turn tbl_summary() into an S3 generic that accepts ARDs in the future?