View source: R/stratification.R
create_demographic_table | R Documentation |
Takes all stratifications requested in par_tab and checks antibody_data for all unique levels of that stratification. If no stratifications are requested, then returns a data frame with a single row and a column called "all" with value 0.
create_demographic_table(antibody_data, par_tab)
antibody_data |
the antibody data data frame, see |
par_tab |
the parameter table, including a column called stratification which is NA if no stratification is requested, for with a character value matching an entry in antibody_data |
a data frame of unique stratification level combinations. Each column is a stratification variable, and each row is a unique combination of levels
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.