[R] Writing and running a R program
Uwe Ligges
ligges at statistik.uni-dortmund.de
Thu Oct 23 16:03:37 CEST 2003
Subramanian Karthikeyan wrote:
> Is there a way I can combine multiple lines of R commands (see below) into
> a little code snippet or a program in a text file, and run it in R to do my
> analysis?
>
> sink("mysink.txt")
> for (......) {
> code for creating a dataframe from supplied data
> code for doing anova from selected data
> }
>
> Thanks very much.
>
> Karth.
>
I guess you are looking for ?source.
Uwe Ligges
More information about the R-help
mailing list