[adegenet-forum] Trouble converting to genid object

Jombart, Thibaut t.jombart at imperial.ac.uk
Thu Sep 25 12:04:17 CEST 2014


Hi there,

it looks like a bug. I'll investigate and get back to you.

Cheers
Thibaut

________________________________
From: adegenet-forum-bounces at lists.r-forge.r-project.org [adegenet-forum-bounces at lists.r-forge.r-project.org] on behalf of Jackie Lighten [Jackie.Lighten at Dal.Ca]
Sent: 22 September 2014 12:59
To: adegenet-forum at lists.r-forge.r-project.org
Subject: [adegenet-forum] Trouble converting to genid object

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/20140925/d13a1228/attachment.html>


More information about the adegenet-forum mailing list