Skip to content
Prev 21448 / 63424 Next

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

I think what is happening is that it is preserving attributes of the input.
e.g.
[1] 0.8044989 0.9303370 0.9711656
attr(,"A")
[1] 23

Note that attribute A was preserved.  Since matrices are just
vectors with a dim attribute that would imply the result.  I agree
that it would be a good idea to document it if it is intended.
On 7/15/06, Fran?ois Pinard <pinard at iro.umontreal.ca> wrote: