generate_standard_tables_count: Generate standard AHSQC tables

Description Usage Arguments Details Examples

View source: R/generate_standard_tables_count.R

Description

Generates standard AHSQC tables in HTML for .Rmd files. generate_standard_tables_count 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.

Usage

1
2
generate_standard_tables_count(changes = FALSE, y, data,
  format = "rmd", module = "ventral")

Arguments

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.

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.

Details

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 tbln.R nomenclature (ex. tbl1.R, tbl2.R, etc.) should be stored in the working directory. The function get_standard_table will do this.

Examples

1
2
3
4
# Not run:
# d0 <- ahs_get_data()
# d1 <- d0[["analyticview"]]
# generate_standard_tables_count(dt = d1, y = "e_gender")

thomasgstewart/ahsqc documentation built on Jan. 24, 2021, 11:19 a.m.