Re: [R] Importing many files from a single code

2011-03-27 Thread chuan_zl
Dear Ram Kumar Basent: I suggest you restore you file is list. I give my example that I read 50 image by 50 folder. imgA<-list() <-create an empty list for(i in 1:50) <-how many file you need to looping. { imgA[[i]]<-read.jpeg(paste("c:/DataCentre/DataPisA/A",i,"FP3.jpg",sep=""))) } This i

Re: [R] Importing many files from a single code

2011-03-27 Thread jackjohnson
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 sp

Re: [R] Importing many files from a single code

2009-11-25 Thread David Winsemius
On Nov 25, 2009, at 9:35 AM, ram basnet wrote: Dear R users, Does somebody know the way to import many files by a single command in R ? I have 50 files in a directory and now, i am importing the files repeatedly (one by one). If there is a way to import all files at a time, it makes much

Re: [R] Importing many files from a single code

2009-11-25 Thread Erik Iverson
help > Subject: [R] Importing many files from a single code > > Dear R users, > > Does somebody know the way to import many files by a single command in R ? > I have 50 files in a directory and now, i am importing the files > repeatedly (one by one). If there is a way to im

Re: [R] Importing many files from a single code

2009-11-25 Thread jim holtman
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 specif

[R] Importing many files from a single code

2009-11-25 Thread ram basnet
Dear R users,   Does somebody know the way to import many files by a single command in R ? I have 50 files in a directory and now, i am importing the files repeatedly (one by one). If there is a way to import all files at a time, it makes much more easy and save times too. Thanks in advance.