View source: R/recode-aggregate.R
do_recode_aggregate | R Documentation |
Recode the category for all after aggregating data based on the
specification in Codebook. For example when aggregating category type of diagnoses
NA
will be produced to represent all type of diagnoses. This will basically
recode NA
to a preferred value such as 0
or Total
.
do_recode_aggregate(
dt = NULL,
spec = NULL,
con = NULL,
aggregate = NULL,
control = FALSE
)
dt |
Input data preferrably in a |
spec |
Specification from |
con |
Connection to database |
aggregate |
Logical value. Default is |
control |
Logical value. |
Other recode functions:
do_recode()
,
do_recode_post()
,
do_recode_regexp()
,
get_codebok()
,
get_codebok_aggregate()
,
get_codebok_regexp()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.