Re: [R] Calling object outside function

2008-09-24 Thread Adaikalavan Ramasamy
I don't understand why you need to use a function at all, especially when all your function arguments are overwritten inside the loop. Here is a simplified example of what you are doing: f <- function(x){ x <- 5 print(x) } Therefore f(1), f(2), ..., f(1000) etc all gives you the same answer.

Re: [R] Calling object outside function

2008-09-24 Thread jim holtman
You have to assign the value of the function to an object. You probably want: TAZDetermine <- Testdata() # I am not sure what your arguments to On Wed, Sep 24, 2008 at 1:16 PM, PDXRugger <[EMAIL PROTECTED]> wrote: > > What i thought was a simple process isnt working for me. After i create

[R] Calling object outside function

2008-09-24 Thread PDXRugger
What i thought was a simple process isnt working for me. After i create an multiple objects in a function (see below), how to i use those objects later in the program. I tried calling the function again and then the object i wanted and it worked the first time but now it doesnt( i think i define