Skip to content
Prev 292909 / 398498 Next

Batch importing data

I want to import data from about 2000 text files, and hope to create a data
frame to make it easy to quote the data.
For example, the files like this
Oil_20030801.txt, Oil_20030804.txt, Oil_20030805.txt ? Oil_20120427.txt
The dates aren?t continuous. I want to create the data frame called ?Oil?,
like that
Oil20030801<-read.table(?E:/Oil/ Oil_20030801.txt?)
Oil20030804<-read.table(?E:/Oil/ Oil_20030804.txt?)
Oil20030805<-read.table(?E:/Oil/ Oil_20030805.txt?)
?
Oil20120427<-read.table(?E:/Oil/ Oil_20120427.txt?)
It is a time consuming way. How can I perform a convenient way? Thank you!


--
View this message in context: http://r.789695.n4.nabble.com/Batch-importing-data-tp4592997p4592997.html
Sent from the R help mailing list archive at Nabble.com.