From pdalgd at gmail.com  Tue Sep 25 09:39:39 2012
From: pdalgd at gmail.com (peter dalgaard)
Date: Tue, 25 Sep 2012 09:39:39 +0200
Subject: [Rd] error on uneven recycling?
In-Reply-To: <CAJ55+dJ8zbqK-7RvTO-8K-y=e1BMKG8aHm-HML3F+FQm1EfutA@mail.gmail.com>
References: <CAJ55+dJ8zbqK-7RvTO-8K-y=e1BMKG8aHm-HML3F+FQm1EfutA@mail.gmail.com>
Message-ID: <F7F7C9E1-4224-4A92-84EF-57331BD9EF65@gmail.com>


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



[Rd] error on uneven recycling?
peter dalgaard