metrumresearchgroup / yspec

Data Specification for Pharmacometrics
https://metrumresearchgroup.github.io/yspec
5 stars 2 forks source link

[ WIP ] Define table for wide (landscape) spec #55

Closed kylebaron closed 3 years ago

kylebaron commented 3 years ago

To generate the data frame underlying the table:

yspec::lscape_table(spec)

If you pass pmtable = TRUE it will return the same object that comes out of pt_cont_wide() or pt_data_inventory() for example.

You can pass that to pmtables::stable_long() and then st_asis() to get it to show up in the Rmd.

I was thinking of making a template intempl for data definitions and just knit these tables in Rstudio; maybe as a parameterized Rmd document.

Screen Shot 2021-01-16 at 12 15 14 AM