R-alpha: 1:n is not integer

Ross Ihaka ihaka@stat.auckland.ac.nz
Thu, 29 May 1997 16:01:37 +1200 (NZST)


Martin Maechler writes:
 > 
 > This is from Snews of yesterday 
 > 
 > Snews> but the : operator creates integers as in
 > Snews> 
 > Snews> > is.integer(1:10)
 > Snews> [1] T
 > Snews> 
 > Snews> and even in
 > Snews> 
 > Snews> > is.integer(1:1)
 > Snews> [1] T
 > 
 > which reminds me of bug report  I had sent a while ago,
 > I think in pre-alpha times:
 > 
 >  MM>  In R,  1:n is   double (aka 'real') and not integer.

Is this a bug or feature.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-