[Rd] assign, documentation (PR#1434)

ripley@stats.ox.ac.uk ripley@stats.ox.ac.uk
Thu, 4 Apr 2002 13:57:26 +0100 (BST)


On Thu, 4 Apr 2002 Martin.Schlather@uni-bayreuth.de wrote:

> 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?

Could you suggest how?  You quoted an *expression*, and the page refers to
quoting a *name*, so I don't know that I see the crux here.

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

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