Description Usage Arguments Value Author(s) Examples
Creates a data frame with the distributions of the subjects age and gender grouped by the field 'targetClassName', providing an overview of the subjects. Note: requires an 'Age' and 'Gender' column.
1 | subjectDistributionTable(data, targetClassName)
|
data |
The subject data to create the table from |
targetClassName |
The name of the field to group the data by |
The subject distribution table in a data frame
Alexander Luke Spedding, alexspedding271@gmail.com
1 2 3 4 5 | all <- generaterandomsubjects(1000)
all$Age <- stats::runif(1000,50,80)
all <- addrandomgender(all)
all <- addrandomdiagnosis(all)
subjectDistributionTable(all, "Diagnosis")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.