should
>> work for output as well
>>
>> Jim Holtman's suggestion.
>> -
>>
>> for (i in 2:4){
>>input <- read.delim(paste('vegetation_', i, '.txt', sep=''))
im Holtman's suggestion.
> -
>
> for (i in 2:4){
>input <- read.delim(paste('vegetation_', i, '.txt', sep=''))
> ,,,, process the file ....
> }
>
> -
(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
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
4 matches
Mail list logo