s-news
[Top] [All Lists]

Re: placing object in global frame

To: jefe goode <jefe_goode@yahoo.com>
Subject: Re: placing object in global frame
From: Prof Brian Ripley <ripley@stats.ox.ac.uk>
Date: Mon, 31 Jan 2005 11:12:14 +0000 (GMT)
Cc: s-news@lists.biostat.wustl.edu
In-reply-to: <20050131110426.57596.qmail@web61005.mail.yahoo.com>
References: <20050131110426.57596.qmail@web61005.mail.yahoo.com>
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

<Prev in Thread] Current Thread [Next in Thread>