Skip to content

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

4 messages · Eliza Botto, Peter Langfelder

#
On Tue, Oct 9, 2012 at 4:37 PM, eliza botto <eliza_botto at hotmail.com> wrote:
It looks like your variable 'n' is NULL. I am not familiar with
NbClust but if I had to guess, my guess would be that it expects a
matrix with 2 dimensions (one of which is 'n'), and you are giving it
an argument whose 'dim' is NULL (perhaps you think you have a
data.frame but it is in fact a list? Or instead of a matrix you give a
vector (or distance)?)

If you give us more information (and reproducible code!), we can help you more.

HTH

Peter
#
Hi Eliza,

this is not __reproducible__ code - how am I supposed to know what's
wrong when I don't have the input files you use? Please read the help
for NbClust carefully and check that all your input variables have the
correct dimensions. Some of the input seems strange, for example the z
matrix that contains column sums of x, and you say diss = "z" instead
of dist = z, which would make more sense. But like I said, I am not
familiar with NClust, so maybe I'm wrong.

Peter
On Tue, Oct 9, 2012 at 4:53 PM, eliza botto <eliza_botto at hotmail.com> wrote: