[R] Re:How to create a R -application

Petr Pikal petr.pikal at precheza.cz
Fri Oct 8 09:04:46 CEST 2004



On 7 Oct 2004 at 17:49, Adaikalavan Ramasamy wrote:

> This is not answering your question directly.
> 
> I usually use the BATCH command for running R non-interactively. You
> can also use commandArgs() to get any arguments from the command line.
> For more information, see help(BATCH) or help(commandArgs).
> 

Or you can make a function from your commands and use it to 
process your data. See ?function and "Writing your own functions" 
in intro docs.

Or you can copy/paste to some suitable text editor, save it as plain 
text and copy/paste it back to R later (with any modifications).

Cheers
Petr


> 
> On Thu, 2004-10-07 at 16:14, Kunal Shetty wrote:
> > Dear R- users and Helpers
> > 
> >        I am a beginner for R. I am using R to implement EM algorithm
> >        for treating Missing values. I would like to know how can
> >        save or compile my logical R commands to an application; so
> >        that the next time I could just execute the R- file.
> > 
> > Example for calculating the mean of  a data set
> > 
> > x <- c(8,11,16,18,6,4,20,25,9,13)
> > u <- mean(x)
> > u
> > 
> > Now I would like to save these commands as batch or an application
> > 
> > Anybody could please help or direct me in this problem
> > Thank you
> > Regards
> > Kunal
> > 
> > ______________________________________________
> > R-help at stat.math.ethz.ch mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide!
> > http://www.R-project.org/posting-guide.html
> >
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html

Petr Pikal
petr.pikal at precheza.cz




More information about the R-help mailing list