[Rd] error on uneven recycling?

From: Thomas Lumley <tlumley_at_uw.edu>
Date: Tue, 25 Sep 2012 14:45:13 +1200

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 Lumley
Professor of Biostatistics
University of Auckland

R-devel_at_r-project.org mailing list
Received on Tue 25 Sep 2012 - 02:47:38 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:20:43 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