Skip to content
Prev 37063 / 63424 Next

Attributes of 1st argument in ...

I think you have missed the use of ..1 etc: see e.g. cBind() in 
package Matrix.

So x <- attr(list(...)[[1L]], "foo") can be x <- attr(..1, "foo")

As for 'extra copying', it all depends on exactly what you are doing, 
but compare
[1] "<0x1b27800>"
[1] 1000
[1] "<0x1b29800>"
tracemem[0x1b29800 -> 0x10a2200]: foo2
[1] 1000
On Sat, 3 Jul 2010, Daniel Murphy wrote: