View source: R/general_help_functions.R
create_table_from_gtsummary_compare_twogroups | R Documentation |
Create a table to compare the descriptive analysis from gtsummary of two groups
create_table_from_gtsummary_compare_twogroups(variables, gtsummary, name_use)
variables |
variables that interested |
gtsummary |
a gtsummary object that contains summary parameters |
name_use |
name of the variable or category |
the table
eg_data <- as.data.frame(list(no = c(1,2,3,4), mark = c(12,34,23,45),
gender = c("M", "F", "M", "F")))
outcome_summary <- IPDFileCheck::get_summary_gtsummary(eg_data,
c("gender", "mark"), byvar = "gender")
variables <- "Mark"
create_table_from_gtsummary_compare_twogroups(variables,
outcome_summary, "Category")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.