[adegenet-forum] replacing NAs
Jombart, Thibaut
t.jombart at imperial.ac.uk
Mon Nov 9 16:03:05 CET 2015
Hi there,
this has been documented and discussed before; you can browse the forum using:
http://adegenet.r-forge.r-project.org/search.html
Fix has been posted there:
https://github.com/thibautjombart/adegenet/issues/71
Short answer: updating to adegenet devel should sort the problem.
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 Smith, Matt [matt_smith at fws.gov]
Sent: 03 November 2015 18:55
To: adegenet-forum at lists.r-forge.r-project.org
Subject: [adegenet-forum] replacing NAs
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<http://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/20151109/226e15d6/attachment.html>
More information about the adegenet-forum
mailing list