sex_to_char: Convert integer sex codes to character codes
Description
This function accepts the integer sex codes accepted by plink and turns them into the character codes accepted by eigenstrat.
Only upper-case characters are returned.
The correspondence is:
0:
U (unknown)
1:
M (male)
2:
F (female)
Any other cases will also be mapped to U (unknown) but with a warning (0 does not generate warnings).