Maps various inputs (M, Male, f, Female) to standard HL7/ISO codes (M, F, O, U).
Examples
standardize_sex(c("Male", "f", "Trans female", "nonbinary", "unknown", NA))
#> [1] "M" "F" "O" "O" "U" "U"
Maps various inputs (M, Male, f, Female) to standard HL7/ISO codes (M, F, O, U).
standardize_sex(c("Male", "f", "Trans female", "nonbinary", "unknown", NA))
#> [1] "M" "F" "O" "O" "U" "U"