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.
Arguments
- dt
 Input data preferrably in a
data.tableformat but is not mandatory- spec
 Specification from
tbl_Filgruppe- con
 Connection to database
- aggregate
 Logical value. Default is
TRUE. Aggregate data according to the specification in registration database. Global options withorgdata.aggregate.- control
 Logical value.
TRUEif the file has been controlled for possible errors
See also
Other recode functions:
do_recode(),
do_recode_post(),
do_recode_regexp(),
get_codebok(),
get_codebok_aggregate(),
get_codebok_regexp()
