descriptive_table | R Documentation |
All-in-one publication ready descriptive table This function output a publication-ready descriptive table from a dataset. Each columns of the dataset is compared between the defined groups.
descriptive_table(
data,
group,
na.include = F,
percent_type = 1,
padj_method = "none",
show_methods = F,
exclude_vector = c("Patient_id", "patient_id", "Sample_ID", "Whole_cohort")
)
data |
A dataframe with row corresponding to samples/patients and columns to variables. |
group |
A character string corresponding to the comparative groups. |
na.include |
Should missing values be included in groups? |
percent_type |
For categorical variables, should percentage be calculated on the row (1) or columns (2)? |
padj_method |
Select the p.value adjustment method (none, fdr, holm or bonferonni). |
show_methods |
Should statistical tests names be precised in a supplementary column? |
exclude_vector |
columns to exclude from the analysis. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.