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


