[adegenet-forum] replacing NAs

Smith, Matt matt_smith at fws.gov
Tue Nov 3 19:05:17 CET 2015


Hello,

I am trying to create a genind object from a genepop file, then replace
missing data with mean. Missing data is indicated by 0's in the genepop
file. When I check for NAs, none are recognized. Why isn't adegenet
recognizing missing data in my genepop file?

> Coho <- read.genepop("Input/20pop10loci.gen", ncode = 3L)

 Converting data from a Genepop .gen file to a genind object...


File description:  coho data dec 2014

...done.

> sum(is.na(Coho$tab))
[1] 0


Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20151103/fac200ef/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20pop10loci.gen
Type: application/octet-stream
Size: 131049 bytes
Desc: not available
URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20151103/fac200ef/attachment-0001.obj>


More information about the adegenet-forum mailing list