Re: [R] input data file

2007-08-07 Thread Tiandao Li
e100') input.list <- list() for (i in file.names){ input.list[[i]] <- scan(i, what=) } You can then 'save(input.list, file='save.Rdata')'. You can access the data from the individual files with: input.list[['file33']] On 8/7/07, Tiandao Li <[EMAIL P

Re: [R] input data file

2007-08-07 Thread Tiandao Li
;save all my data files" you really mean "save all my R objects". On 8/7/07, Tiandao Li <[EMAIL PROTECTED]> wrote: > Hello, > > I am new to R. I used scan() to read data from tab-delimited files. I want > to save all my data files (multiple scan()) in another file, an

[R] array

2007-08-07 Thread Tiandao Li
Hello, I have 30 GenePix tab-delimited files generated from 10 microarray experiments, each has 3 replicates. I used scan() to read the files, and assigned each file to a unique name (such as A1, A2, A3 for experment A, and B1, B2, and B3 for experiment B) with 1000 rows and 56 columns. Now I

[R] input data file

2007-08-07 Thread Tiandao Li
Hello, I am new to R. I used scan() to read data from tab-delimited files. I want to save all my data files (multiple scan()) in another file, and use it like infile statement in SAS or \input{tex.file} in latex. Thanks! __ R-help@stat.math.ethz.ch m

[R] array

2007-08-07 Thread Tiandao Li
Hello, I have some files generated from microarray experiments. I used scan() to read the files, and assigned each file to a unique name with many rows and columns. Now I want to create a array (ArrayA) with unique names, and I can use ArrayA[1,2][[6]] to refer the data in each file. Is there any