Re: [R] global object in user defined function

2007-10-10 Thread Katharine Mullen
If I understand your question, then you should just study some examples/other people's code that initialize new objects as the return values of functions. There are two small examples below. On the other hand, if you really need a _global_ object, see help(assign). ## Example 1: last line is ret

[R] global object in user defined function

2007-10-09 Thread Murray Pung
I need an object created in a user defined function to be accessible to another user defined function. I am fairly certain the object is correctly created as it prints when I use the return() function, however the 2nd function seems unable to use it. I am guessing objects created in functions are