[R] someattributes

Charilaos Skiadas skiadas at hanover.edu
Mon Feb 26 21:09:15 CET 2007


On Feb 26, 2007, at 3:00 PM, Thaden, John J wrote:

> Thanks for correcting me.  Actually, my windows
> R documentation says "mostattributes()", but it
> makes no difference -- none of the three show
> up as function names or R objects.

That's because there is no "mostattributes" function, it only works  
as an assignment:

?"mostattributes<-"

Example:

 > x <- c(2,3,4)
 > mostattributes(x) <- list(foo="bar")
 > x
[1] 2 3 4
attr(,"foo")
[1] "bar"

> -John

Haris Skiadas
Department of Mathematics and Computer Science
Hanover College



More information about the R-help mailing list