Description Usage Arguments Details Examples
View source: R/generate_standard_tables.R
Generates standard AHSQC tables in HTML for .Rmd files. generate_standard_tables
will print standard
tables with no changes by default. If changes to individual tables are desired, they
can be made with get_standard_table
using separate .R files in the working directory.
1 2 3 |
changes |
a boolean. Set to TRUE to indicate that changes have been made to at least one table. |
y |
a character string to indicate group variable for tables. |
data |
a data table. |
date |
a character string of the date of data download. Use "YYYY-MM-DD" format. |
format |
a string that describes the output format. Currently only "shiny" or "rmd". Default is "rmd" |
module |
a string that indicates which data module, ventral or inguinal, is used to create tables. Set to "ventral" for ventral module and "inguinal" for inguinal table. Once cannot generate tables for ventral and inguinal modules together. |
pvalue |
a boolean. Set to TRUE if pvalues are desired for all tables. |
display |
a boolean. Set to TRUE to print tables to output. |
Function returns the standard set of tables for the AHSQC in HTML code.
If changes = TRUE
, the code for each table should be in individual .R files
with the tbl
n.R
nomenclature (ex. tbl1.R, tbl2.R, etc.) should be stored in the
working directory. The function get_standard_table
will do this.
1 2 3 4 | # Not run:
# d0 <- ahs_get_data()
# d1 <- d0[["analyticview"]]
# generate_standard_tables(dt = d1, y = "e_gender")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.