I made yesterday a comment about a "Curious behaviour of print".(I forgot to
mention that I work with S+4.5 under Nt4.0, sorry!)
----------
S+>zz1
[1] -2.4296 -0.8966 -0.5614 -0.5177 -0.0236 0.1401 0.4715 0.6122 0.8082
1.7956
S+>names(zz1)_LETTERS[seq(10)]
S+>zz1
A B C D E F G H I J
-2.43 -0.897 -0.561 -0.518 -0.0236 0.14 0.471 0.612 0.808 1.8
-----------
According to M. Maechler the source of the problem is in the fact that named
vectors are printed with print.matrix, while for unnamed ones print.atomic
is used.
Prof. Ripley noted that in S+5.x a vector with names is not a vector, but a
"named", so one should not necessarily expects the same behaviour.
Of course using format with cat solves the problem.
Thanks to both,
L. Molinari
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news
|