really new to coding and trying to figure out how to look at each row, and depending on the values on that row, the one closer in the alphabet gets a 0 while the other one gets a 1.
"Now you will convert the genotype information into a numeric representation that you can analyze mathematically. For each row, you will set the allele closest alphabetically to “A” to be 0 and the other allele to be 1. Thus you will create a matrix of zeros and ones."
I've been going through some R books trying to find a way to do it as well as google searching and cannot find anything.
If anyone has any insight it is much appreciated!