<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>Hi,</div>
<div><br>
</div>
<div>I am having trouble converting a presence/absence genotype data frame to a genid object</div>
<div><br>
</div>
<div>Please see attached for test data file.</div>
<div><br>
</div>
<div>Using </div>
<div><br>
</div>
<div>obj2 <- genind(test, ploidy=1, type="PA")</div>
<div><br>
</div>
<div>I get the error:</div>
<div><br>
</div>
<div>
<div>Error in `colnames<-`(`*tmp*`, value = c("L1", "L2")) : </div>
<div>  length of 'dimnames' [2] not equal to array extent</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Using</div>
<div><br>
</div>
<div>obj2 <- df2genind(test, ploidy=1, type="PA")</div>
<div><br>
</div>
<div>I get the error:</div>
<div><br>
</div>
<div>
<div>Error in `colnames<-`(`*tmp*`, value = "L1") : </div>
<div>  length of 'dimnames' [2] not equal to array extent</div>
<div>In addition: Warning messages:</div>
<div>1: In eval(expr, envir, enclos) : NAs introduced by coercion</div>
<div>2: In df2genind(test, ploidy = 1, type = "PA") :</div>
<div>  entirely non-type marker(s) deleted</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Any help would be much appreciated</div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>Jack</div>
</body>
</html>