[R] Read from many files into many object

Sigit B Wibowo sigitbw at gmail.com
Wed Sep 3 12:52:03 CEST 2008


Dear all,

I am new in R. I want to read data which is vector from many files and 
import to many object.
For example I have 10(ten) files.
file1.txt
file2.txt
   :
   :
file10.txt.

I want to import each file into one object as follows.
data1
data2
   :
   :
data10

I want to import file1.txt into data1, file2.txt into data2, and so on.
How to do it quickly?

Thanks in advance.
Sigit B. Wibowo



More information about the R-help mailing list