Thanks Jim but I need to use "cbind" otherwise I will not get the correct
information from the data. Also each data set has the dimension 200X365 but
I only need 200X20 each.

Thanks

On Tue, Dec 4, 2012 at 10:22 PM, jim holtman <jholtman@gmail.com> wrote:

> try::
>
> do.call(rbind, myfiles)
>
> On Tue, Dec 4, 2012 at 9:37 PM, Gyanendra Pokharel
> <gyanendra.pokharel@gmail.com> wrote:
> > Hi group,
> >
> > I imported  16 data frames using the function "list.files"
> >
> > temp <- list.files(path="...........")
> > myfiles = lapply(temp, read.table,sep = "")
> >
> > Now I have 16 data set imported in R window.
> >
> > I want to combine them by row and tried some thing like (Here I am
> > considering only 20 columns)
> >
> > for(i in 1:16){
> >     data<- cbind(myfiles[[i]][,1:20])
> >
> > }
> >
> >
> > but it returns only first data set. I can combine them using
> >
> > data <- cbind(myfiles[[1]][,1:20],myfiles[[2]][1:20],...............)
> >
> > But  I want in a loop so that I can make the efficient code.
> >
> > Any kind of suggestion will be great for me.
> >
> > Thanks
> >
> >         [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > R-help@r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
>
>
>
> --
> Jim Holtman
> Data Munger Guru
>
> What is the problem that you are trying to solve?
> Tell me what you want to do, not how you want to do it.
>

	[[alternative HTML version deleted]]


