Skip to content

Importing many files from a single code

4 messages · ram basnet, Erik Iverson, jim holtman +1 more

#
See the example in ?source, which does exactly this... or make a package depending on your needs.
#
Exactly what do you mean by "import"?  What commands are you using?
You can get a list of the files in a directory and then iterate
through reading each one in.  If you use 'lapply', you can
'read.table' in some data frames and then 'rbind' them into a single
data frame.  You need to be more specific on the problem you are
trying to solve.
On Wed, Nov 25, 2009 at 9:35 AM, ram basnet <basnetabc at yahoo.com> wrote:

  
    
#
On Nov 25, 2009, at 9:35 AM, ram basnet wrote:

            
Learn to search:

 > RSiteSearch("import many files")
A search query has been submitted to http://search.r-project.org
The results page should open in your browser shortly

One link away you find:

https://stat.ethz.ch/pipermail/r-help/attachments/20080903/4172cd28/attachment.pl