Hi Everyone,
I have been using adegent and DAPC for a while now and never had a problem but recently I am running into a problem. After find.cluster when I perform dapc after selecting the PCs to retain I get the following error:
Error in lda.default(x, grouping, ...) :
nrow(x) and length(grouping) are different
To give a brief background, I did DAPC analysis for 1300 genotypes at K=10 and then based on that I selected approx. 900 genotypes which were very closely related and want to run DAPC again on just these lines. I assigned the population to these lines based on my previous DAPC results.
I would like to learn why am I getting this error now and how to solve this issue, Please, any help in this regard will be appreciated.
Thanks,
Massub