[R] getAttr problem

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri May 9 17:03:14 CEST 2003


On Fri, 9 May 2003, Stoyanov, Tsvetan wrote:

> I meant getAttrib, and the "names" attribute is indeed NULL. I meant to
> say that the "dimnames" attribute of the outer product id NULL, when it
> should be given by those of the arguments.

It is:  as.double(x) and as.double(y) have no names.

> I am just trying to reproduce the example in section 4.7.4:
> 
> out.R:
> ------
> out <- function(x, y) .Call("out", as.double(x),as.double(y))

That's the R code for the first version: that for the second version is 
not given.  Remember this is an illustration of expanding an example.

-- 
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