[R] Writing and running a R program

Arne Henningsen ahenningsen at email.uni-kiel.de
Thu Oct 23 15:54:22 CEST 2003


source("mycode.R")

On Thursday 23 October 2003 15:29, 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.
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help

-- 
Arne Henningsen
Department of Agricultural Economics
Christian-Albrechts-University Kiel
24098 Kiel, Germany
Tel: +49-431-880-4445
Fax: +49-431-880-1397 
ahenningsen at email.uni-kiel.de
http://www.uni-kiel.de/agrarpol/ahenningsen/




More information about the R-help mailing list