<div dir="ltr">Hello,<div><br></div><div>I am trying to read in a dataframe (rather than a genepop or other format) with 1 column as population, 1 column as individual and 1 column as River (which I would like as the @other tab). I've coded my alleles as 2-digit codes with no separator. In excel this looks like 1134 or 0230 for example. </div><div><br></div><div>I've done df2genind(x, sep=NULL, ind.names=x$Individual, pop=x$Population, missing="0", ploidy=2) but I get </div><div><br></div><div><div>Error in df2genind(scot, sep = NULL, ind.names = scot$Individual, pop = scot$Population,  : </div><div>  2 alleles cannot be coded by a total of 27 characters</div></div><div><br></div><div>I notice that R is reading any genotype beginning with a 0 as 230 instead of 0230. I may also want to include some additional 'other' variables such as coordinates so looking for options for bringing in a dataframe instead of particular genetic formats.</div><div><br></div><div>Thanks,</div><div>Mark</div></div>