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
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
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]
3 matches
Mail list logo