R-alpha: Oops! -- a lisp pointer in R ... :

Martin Maechler (maechler@stat.math.ethz.ch)
Wed, 3 Apr 96 09:30:00 +0200


Date: Wed, 3 Apr 96 09:30:00 +0200
Message-Id: <9604030730.AA17182@>
From: Martin Maechler <maechler@stat.math.ethz.ch>
To: R-testers@stat.math.ethz.ch
In-Reply-To: <199604022342.LAA08086@stat.auckland.ac.nz> (message from Ross
Subject: R-alpha: Oops! -- a lisp pointer in R ... :

[R-alpha 0.4, SunOS 4.1.4]

If you don't know that R is based on lisp, you hardly believe the
following ( BUG ):

## I want to create to vectors 'xx' and 'yy' of same length
> xx <- yy <- vector("real", length = 7)
> xx[1:3] <- -10
> yy
[1] -10 -10 -10   0   0   0   0
> yy[5] <- pi
> xx
[1] -10.000000 -10.000000 -10.000000   0.000000   3.141593   0.000000   0.000000
> 
## So, instead of 2 vectors with the same length, 
## I only have one vector with two names .....

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-testers mailing list -- To (un)subscribe, send
subscribe	or	unsubscribe
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-