[adegenet-forum] error in hclust

Mark Coulson Mark.Coulson.ic at uhi.ac.uk
Fri Aug 5 11:34:58 CEST 2016


Hello,

Yesterday I ran  the following code and everything worked just fine. Today I simply opened up my script and re-ran it and got the following

laidon <- import2genind("laidon_project_data_no_sibs.str")
X <- tab(laidon, freq=TRUE, NA.method="mean")

D <- dist(X)
D <- as.matrix(D)

h1 <- hclust(D, method="complete")

Error in if (is.na(n) || n > 65536L) stop("size cannot be NA nor exceed 65536") :
  missing value where TRUE/FALSE needed

Not sure what this error means but more confused as to why suddenly it isn't working. Nothing else has changed

Mark
Inverness College UHI, a partner in the University of the Highlands and Islands www.inverness.uhi.ac.uk Board of Management of Inverness College (known as Inverness College UHI), Scottish Charity No SC021197.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20160805/bc3d72af/attachment.html>


More information about the adegenet-forum mailing list