[adegenet-forum] replacing NAs

Smith, Matt matt_smith at fws.gov
Tue Nov 3 19:55:29 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


I'm new to this, so sorry for any duplicate posts.
Thank you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20151103/901121e6/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/901121e6/attachment-0001.obj>


More information about the adegenet-forum mailing list