disaggregate | R Documentation |
Counts the number of occurrence of an outcome based on the category of interest. It also provides "Totals" at the end of the columns or rows (or both) where appropriate.
disaggregate(data, by, ...)
data |
Data containing the indicator to be disaggregated. |
by |
The variable of interest to be used for the disaggregation. The
options are any of: |
... |
Other parameters to be passed based on the |
disaggregated data
### Disaggregate "TX_NEW" clients into age categories for each state new_clients <- tx_new(ndr_example, from = "2021-01-01") disaggregate(new_clients, by = "current_age") # default value of level is "state" ### Disaggregate "TX_CURR" by gender for each facility curr_clients <- tx_curr(ndr_example) disaggregate(curr_clients, by = "sex", level = "facility")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.