[adegenet-forum] NA.REPLACE

Raman Lawal plxral at nottingham.ac.uk
Wed Jul 15 16:09:18 CEST 2015


Hi All,
I have tried to prepare all necessary files but wanted to remove the NA using the na.replace option of the ade4 as seen in command below. When I ran test<- na.replace(genind_ABCDEFGH,"mean", quiet=FALSE), I get "Error: could not find function "na.replace". I am not certainly sure what I was doing wrong. Could you please advise me on what to do.

library(adegenet)

datan<- as.numeric(data4)

pop<-data4 at phdata$pop

genind_ABCDEFGH<-as.genind(datan,pop)

rm(data4)
rm(datan)
#rm(pop)
library(ade4)
## Replacing NAs
test<- na.replace(genind_ABCDEFGH,"mean", quiet=FALSE)

 LAWAL




This message and any attachment are intended solely for the addressee
and may contain confidential information. If you have received this
message in error, please send it back to me, and immediately delete it. 

Please do not use, copy or disclose the information contained in this
message or in any attachment.  Any views or opinions expressed by the
author of this email do not necessarily reflect the views of the
University of Nottingham.

This message has been checked for viruses but the contents of an
attachment may still contain software viruses which could damage your
computer system, you are advised to perform your own checks. Email
communications with the University of Nottingham may be monitored as
permitted by UK legislation.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20150715/236102b7/attachment.html>


More information about the adegenet-forum mailing list