Re: [R] Passing object value in command line

2014-10-15 Thread MacQueen, Don
Don¹t know exactly what you mean by ³passing the value of Mon from the command prompt², but it could be At the R prompt: > Mon <- ¹31-may-2014¹ > source(mainCall.R) If, on the other hand, you mean shell prompt, then within R see ?commandArgs On 10/15/14, 11:21 AM, "Abhinaba Roy" wrote: >Hi

Re: [R] Passing object value in command line

2014-10-15 Thread Jeff Newmiller
There is this great document called the R Reference that comes with the software in which you can search for "command" and find the answer. There is also a useful function called apropos that can search the help files from the R prompt. Try apropos("command"). There is also a manual for this ma

[R] Passing object value in command line

2014-10-15 Thread Abhinaba Roy
Hi R-helpers, I have a R script (mainCall.R) which takes the value of an object *'Mon'* as '31-may-2014' or '31-aug-2014' . How can I run the R script by passing the value of Mon from the command prompt? Any help will be appreciated Regards, Abhinaba [[alternative HTML version deleted]