Skip to content
Prev 21463 / 63424 Next

Matrices given to pt? [was: [R] for loops and counters]

There is a general rule that scalar operations (that is functions 
that work element-by-element and return a scalar result) preserve 
attributes including names, dims and dimnames.

Similarly, there is a general rule about binary operations and attributes.

These things should definitely be in the `R Language Definition', but that 
languishes as a draft.  I am writing up comments on R internals (currently 
an appendix on `Writing R Extensions', and this will go there (the section 
on attributes is current work).
On Sat, 15 Jul 2006, Fran?ois Pinard wrote: