[adegenet-forum] Replace NA in genlight file for xvalDapc
Lauren Schiebelhut
lschiebelhut at ucmerced.edu
Thu Jan 5 08:10:06 CET 2017
Hello,
I am trying to replace "NA" in my genlight file to run xvalDapc.
Is there an equivalent of the following command for genlight?
X <- tab(obj, NA.method="mean")
I get the following error when I try it with my file:
Error in (function (classes, fdef, mtable) :
unable to find an inherited method for function ‘tab’ for signature
‘"genlight"’
I originally tried to use na.replace as is written in section 4.3 of the
DAPC tutorial (dated 2 Sep 2016), but discovered it is not included in
adegenet 2.0.2.
Thank you for your time.
Lauren
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20170104/23a13e81/attachment.html>
More information about the adegenet-forum
mailing list