[tech-spec] Re: R arguments

  • From: "Daniel Flam" <daniel@xxxxxxxxxx>
  • To: <tech-spec@xxxxxxxxxxxxx>
  • Date: Wed, 13 Oct 2004 13:11:10 -0400

Several options:

you could use global variables:

initializefunc = function(a, b)
{
    global1 <<- a
   global2 <<-b

  cal what you want
}

in general you want to reference an external object. I think you would want
to use the object oriented approach and save globals inside objects




----- Original Message ----- 
From: "BBands" <BBands@xxxxxxxxxxxxxxxxxx>
To: <tech-spec@xxxxxxxxxxxxx>
Sent: Wednesday, October 13, 2004 12:19 PM
Subject: [tech-spec] R arguments


> Is there a way to pass arguments to an R script?
>
> Something like: source('script.R', arg1, arg2)
>
>      --jab
>
>



Other related posts: