[adegenet-forum] Trouble converting to genid object

Jackie Lighten Jackie.Lighten at Dal.Ca
Mon Sep 22 13:59:47 CEST 2014


Hi,

I am having trouble converting a presence/absence genotype data frame to a genid object

Please see attached for test data file.

Using

obj2 <- genind(test, ploidy=1, type="PA")

I get the error:

Error in `colnames<-`(`*tmp*`, value = c("L1", "L2")) :
  length of 'dimnames' [2] not equal to array extent


Using

obj2 <- df2genind(test, ploidy=1, type="PA")

I get the error:

Error in `colnames<-`(`*tmp*`, value = "L1") :
  length of 'dimnames' [2] not equal to array extent
In addition: Warning messages:
1: In eval(expr, envir, enclos) : NAs introduced by coercion
2: In df2genind(test, ploidy = 1, type = "PA") :
  entirely non-type marker(s) deleted


Any help would be much appreciated

Thanks,

Jack
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20140922/56727659/attachment-0001.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test.txt
URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20140922/56727659/attachment-0001.txt>


More information about the adegenet-forum mailing list