Re: [R] odd feature

From: Thomas Lumley <tlumley_at_u.washington.edu>
Date: Tue 23 May 2006 - 00:12:26 EST

On Sun, 21 May 2006, ivo welch wrote:
>
> Aside, I like the flexibility of R, but I am not thrilled by all the
> recycling rules. I either mean I want a scalar or a vector of
> equal/appropriate dimension. I never want a recycle of a smaller
> vector. (I do often use a recycle of a scalar.)
>

One case where the vector-vector recycling rules are used is in

vector-matrix operations:
    a<-1:4
    b<-diag(4)

    a+b

         -thomas



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue May 23 01:47:10 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 23 May 2006 - 08:10:22 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.