[Rd] error on uneven recycling?
pdalgd at gmail.com
Tue Sep 25 09:39:39 CEST 2012
On Sep 25, 2012, at 04:45 , Thomas Lumley wrote:
> Is there some reason why
>  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.
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...
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com
More information about the R-devel