Can you give me an idea of *how* to do that?
I've scoured
Venables and
Ripley, as well as various other help guides to no avail...
On Sep 30, 2004, at 2:05 AM, Olivia Lau wrote:
Each function operates in its own environment.
So if you
do stuff
inside a function, but don't return it at the end of the
function,
it's gone. You can't get it back. So you need to return
it as an
element in a list object (for multiple matricies of
different
dimensions, for example) or in an array (for matricies of
the same
dimension). Having saved your output from the function,
you need to
extract the elements that you wish to manipulate (by
remembering its
list name, or position in the array).
----- Original Message ----- From: "Jonathan Harris"
<jaharris(a)fas.harvard.edu>
To: <gov2001-l(a)lists.fas.harvard.edu>
Sent: Thursday, September 30, 2004 1:40 AM
Subject: [gov2001-l] objects defined inside functions...
I'm having problems with my code: R
doesn't recognize the
objects I
define in my function, though it does recognize (and as
far as I can
tell, correctly execute) the function. But, I need the
internally-defined objects in order to do other
calculations. Any
thoughts on why R won't let me see those objects
(matrices,
specifically)?
_______________________________________________
gov2001-l mailing list
gov2001-l(a)lists.fas.harvard.edu
http://lists.fas.harvard.edu/mailman/listinfo/gov2001-l
_______________________________________________
gov2001-l mailing list
gov2001-l(a)lists.fas.harvard.edu
http://lists.fas.harvard.edu/mailman/listinfo/gov2001-l
_______________________________________________
gov2001-l mailing list
gov2001-l(a)lists.fas.harvard.edu