[R] npmc function: 'x' must be atomic

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Jun 22 16:38:38 CEST 2004

On Tue, 22 Jun 2004, Patrick Drechsler wrote:

> Hi,
> I'm having trouble getting the function `npmc' working. I have a
> 2 column 30 row table called `mydata':
> > npmc(mydata, df=2, alpha=0.05)
> Error in sort(unique.default(x), na.last = TRUE) : 
> 	`x' must be atomic
> > is.atomic(mydata)
> [1] TRUE
> Is there anything I have overlooked? 

traceback()/dump.frames/debugger() to pinpoint the error?

Telling us where you got npmc from? (I suspect you mean the one in package 

Noticing that `x' is not the same name as `mydata'?

> Am I invoking the function correctly? I wasn't able to find any hints in
> the archives either.

I am sure that the hint to make use of R's debugging facilities is there 
hundreds of times.

Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

More information about the R-help mailing list