Re: [R] How to export text into separate text files

2008-10-28 Thread Lauri Nikkinen
should >> work for output as well >> >> Jim Holtman's suggestion. >> - >> >> for (i in 2:4){ >>input <- read.delim(paste('vegetation_', i, '.txt', sep=''))

Re: [R] How to export text into separate text files

2008-10-28 Thread Lauri Nikkinen
im Holtman's suggestion. > - > > for (i in 2:4){ >input <- read.delim(paste('vegetation_', i, '.txt', sep='')) > ,,,, process the file .... > } > > -

Re: [R] How to export text into separate text files

2008-10-28 Thread John Kane
(i in 2:4){ input <- read.delim(paste('vegetation_', i, '.txt', sep='')) process the file } -- --- On Tue, 10/28/08, Lauri Nikkinen <[EMAIL PROTECTED]> wrote: > From: Lauri Nikkinen <[EMAI

[R] How to export text into separate text files

2008-10-28 Thread Lauri Nikkinen
Hello, I'm producing text from my data.frame using cat function. I would like to use for loop to export each column in my data.frame into separate text files. Here is the example code r <- t(Indometh) for (i in 1:ncol(r)) { cat("Some text,", "\n") cat("\n") cat("More text, More tex