Hello Mason,
you can see that there are two rows above the allele names, yours only has one row.
To fix this, you have a couple of options:
a. Remove the top row and read the data in with readr::read_csv(skip = 1) or read.csv and pass the genotypic data to df2genind() (since you have haploid data)
b. Add a second blank row to your genalex file and read it in like that.
Background:
the locus names are being skipped and the alleles are being interpreted as loci. If you try to read in a data frame with duplicate
column names (say a column named 221) in R, it will change the duplicate column name to 221.1, which is why you got the error
about the duplicate column name.
Nevertheless, I've created an issue to prevent this from happening again and it will appear in the upcoming version of poppr:
Hope that helps,
Zhian