
Recode sex value of cause-of-death data based on CoDEdit rules
Source:R/cod_recode_sex.R
cod_recode_sex.Rd
Recode sex value of cause-of-death data based on CoDEdit rules
Usage
cod_recode_sex(sex_value, sex_code = c(1L, 2L), codedit = TRUE)
Arguments
- sex_value
A character or integer value or vector of values signifying the sex.
- sex_code
A character or integer vector of 2 values that indicate which values are to be considered pertaining to males (first value in the vector) or to females (second value in the vector).
- codedit
Logical. Should output be based on the CoDEdit version 2 coding rules. Default to TRUE.