View source: R/MakeCountTablesGroup.R
MakeCountTablesGroup | R Documentation |
!!! This function has been depreciated – just use MakeCountTables instead Takes an input table and calculates the total and percentages for each variable per group In order to ensure one row per observation, a id_var parameter is required as id_var
MakeCountTablesGroup(data, id_var = "MRN", group_var = "CMD", sum_vars)
data |
the input table |
id_var |
the row-identifier column |
group_var |
the parameter to split the calculations by |
sum_vars |
a vector of variables from the table to perform the operation on |
out <- MakeCountTablesGroup(data, id_var="MRN", group_var="Included_in_Study", sum_vars=c("Etiology", "Race", "Gender")) print(out$Etiology)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.