On Mon, 31 Jan 2005, jefe goode wrote:
I have an object that I wish to place into the global
frame. Is there an assignment statement that I can use
to do this?
assign(): See ?assign and ?Asssignment.
(There is also <<-, but we do not recommend you use it: see below.)
NB This object is created in a function, so, at
present, is only visible in the function frame.
What do you mean by the `global frame'? There is a session frame (frame =
0) and a working database (pos=1), but `global frame' is not in common
usage. There is also frame 1, which can be very useful.
<<- is similar to assign( ..., pos=1) which is more explicit.
--
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 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
|