<div dir="ltr">Hello All,<div><br></div><div>After hybridizing two populations, I converted the genind file to at dataframe to randomly extract individuals. I then attempt to convert this data frame back into a genind file, but get the error message below:</div><div><br></div><div><div>> F1_G1 <- df2genind(randomF1)</div><div>Error in df2genind(randomF1) : </div><div> 2 alleles cannot be coded by a total of 19 characters</div><div><br></div><div>Im assuming this is because the "pop" column, instead of being coded by a number contains the text generated by the hybridize function "honnedaga-tdhybrids"</div><div><br></div><div>I tried to resolve this by using the following code, but ran into a second error message:</div><div><br></div><div><div>> randomF1$pop[randomF1$pop == "honnedaga-tdhybrids"] <- 1</div><div>Warning message:</div><div>In `[<-.factor`(`*tmp*`, randomF1$pop == "honnedaga-tdhybrids", :</div><div> invalid factor level, NA generated</div></div><div><br></div><div>any idea how I might be able to fix this? Thanks in advance!!!</div><div><br></div><div>-Spencer</div>
<div><br></div>-- <br>Spencer A Bruce<div>200 Washington St. </div><div>Troy, NY 12180<br>518 225 0787</div>
</div></div>