<div dir="ltr"><div>Ok, so I got rid of my 'River' column so it is now Col 1 is a population label name and col 2 is an individual identifier. the remaining columns are the genotype data now reading 4 digits (i.e. 0206, 1220, etc.).</div><div><br></div>scot <- read.table("Scotland_adegenet_no_river_names.txt", header=TRUE, sep="\t", quote="\"", colClasses="character", stringsAsFactors=FALSE)<br><div><br></div><div>executing the conversion via</div><div><br></div><div>df2genind(scot, sep="", ind.names=scot$Individual, pop=scot$Population, missing="0", ploidy=2, type="codom", ncode=4)<br></div><div><br></div><div>I still get the following error</div><div><br></div><div><div>Error in as.matrix(as.data.frame(strsplit(X, sep))) : </div><div>  error in evaluating the argument 'x' in selecting a method for function 'as.matrix': Error in data.frame(c("A", "n", "n", "A", "e"), c("A", "n", "n", "A",  : </div><div>  arguments imply differing number of rows: 5, 10, 8, 7, 9, 12, 11, 16, 17, 14, 13, 15, 18, 25, 27, 23, 21, 26, 20, 19, 22, 24, 6, 4, 1</div></div><div><br></div><div><br></div><div>While I can get the genepop file accepted, being able to take a dataframe as indicated would be much easier for what I am hoping to do and the size of the datasets etc. </div><div><br></div><div>Cheers,</div><div>Mark</div></div>