Hello Luis,
First, thank you for this suggestion. I was able to implement your workaround which allowed me to calculate the reporting functions mentioned previously.
I have encountered another issue with the function gl2structure() which I am attaching to this thread, as I am wondering if it is also related to the formatting issues in my file.
The function works as expected and successfully outputs a .str file, however, for each individual in the dataset it creates two entries. So, for my 995 individuals, I end up with a structure file with 1990 rows. When I look at the file in a plaintext editor, I can confirm that each IndName appears twice. This occurs whether I use the 1-row or 2-row datasets as input. I also tested it on filtered and unfiltered datasets and obtained the same result.
I am using the default arguments as follows:
gl2structure(VibStr2r, outfile = "VibStr2r.str", outpath = "/R projects/Vib_Structure/")
Additionally, I spoke with a colleague who is also working with DartR & structure, and they indicated that the header rows on my structure file look different. Apparently theirs do not include so many spaces (screenshot below)
In the below screenshots, you can see a visual of what I mean about the duplicate IndName entries
Please let me know if you have any suggestions as I am unsure how to proceed.
Thanks,
David