Is there any easy way to change a letter (from a string) into the corresponding number, such as a=1, b=2, c=3…y=25, z=26 ?
I know I could make a really long if/ifelse that checks for every letter then changes string to specific number, but I feel like this is got to be something that can be done easier.