[Rd] assign, documentation (PR#1434)

Martin.Schlather@uni-bayreuth.de Martin.Schlather@uni-bayreuth.de
Thu, 4 Apr 2002 14:36:01 +0200 (MET DST)


Hi,

The help for `assign' says 
 
 In all the assignment operator expressions, `x' can be a name or
 an expression defining a part of an object to be replaced (e.g.,
 `z[[1]]').  The name does not need to be quoted, though it can be.

So I would expect that by
 a<-1:4
 assign("a[1]",2)   
the first component of a gets the value 2, but the object "a[1]" is 
created.
Could this be clarified in the documentation? 

Cheers,
Martin

-- 
Martin Schlather                 email: Martin.Schlather@uni-bayreuth.de
Abteilung Bodenphysik            phone: +49 (0)921 55 2193          
Univ. Bayreuth                   Fax  : +49 (0)921 55 2246
D -- 95440 Bayreuth, Germany     http://www.geo.uni-bayreuth.de/~martin/

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._