[R] reading and storing files in the workspace

2007-07-31 Thread Luis Ridao Cruz
R-help, I have a vector containing (test) some file names. The files contents are matrixes. test [1] aaOki.txtaOki.txt bOki.txt c1Oki.txt c2Oki.txtc3Oki.txtcOki.txt dOki.txt dyp100.txt dyp200.txt [11] dyp300.txt dyp400.txt dyp500.txt dyp600.txt

Re: [R] reading and storing files in the workspace

2007-07-31 Thread jim holtman
try: for (i in test){ assign(gsub(.txt$, , i), read.table(i, header=TRUE)) } On 7/31/07, Luis Ridao Cruz [EMAIL PROTECTED] wrote: R-help, I have a vector containing (test) some file names. The files contents are matrixes. test [1] aaOki.txtaOki.txt bOki.txt c1Oki.txt