[R] Writing and running a R program

2003-10-23 Thread Subramanian Karthikeyan
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

Re: [R] Writing and running a R program

2003-10-23 Thread Arne Henningsen
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

Re: [R] Writing and running a R program

2003-10-23 Thread Uwe Ligges
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

Re: [R] Writing and running a R program

2003-10-23 Thread Philipp Pagel
On Thu, Oct 23, 2003 at 09:29:46AM -0400, 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? It's quite easy: Write your R code with your favorite text