View source: R/summarise_ndr.R
| summarise_ndr | R Documentation |
The summarise_ndr() function counts the number of occurrence of
specified level for each of the supplied dataframe. It then combines the
given dataframes into a single table. It also adds a "Total" roll that
adds all the rows for each of the numeric columns.
summarise_ndr(..., level = "state", names = NULL)
... |
Data frames to be summarised. |
level |
The level at which the summary should be performed. The options are "ip" (or "country"), "state", "lga" or "facility". |
names |
The names to be passed to the summary columns created in the output |
summarise_ndr
new <- tx_new(ndr_example, from = "2021-03-01")
curr <- tx_curr(ndr_example)
summarise_ndr(
new,
curr,
level = "state",
names = c("tx_new", "tx_curr")
)
### summarise for only one dataframe (defaults data name when name is not specified)
summarise_ndr(
data = new,
level = "ip"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.