Re: [Rd] error on uneven recycling?

From: peter dalgaard <pdalgd_at_gmail.com>
Date: Tue, 25 Sep 2012 09:39:39 +0200

On Sep 25, 2012, at 04:45 , Thomas Lumley wrote:

> Is there some reason why
>

>> (1:2)+(1:3)

> [1] 2 4 4
> Warning message:
> In (1:2) + (1:3) :
> longer object length is not a multiple of shorter object length
>
> can't be made into an error? I realise it was there in S-PLUS, but
> since it produces a warning there can't be many examples on CRAN or
> Bioconductor using it, and I can't think of any situation where it
> would be used deliberately.
>
> -thomas

I always thought it was retained in case you needed to add something with cyclic behavior to a time series not necessarily containing an even number of cycles. If it has been outlawed in S-PLUS for a decade, that's probably not a big need...

-p

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd.mes_at_cbs.dk  Priv: PDalgd_at_gmail.com

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Tue 25 Sep 2012 - 07:41:45 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 25 Sep 2012 - 12:30:44 GMT.

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

list of date sections of archive