Re: [R] how to loop through dataframe objects in environment

2014-10-16 Thread Jeff Newmiller
This advice works best when you use the lapply function to load your data frames to begin with. That way your like-structured data frames are grouped into one list that you can loop through without complicated use of get and assign. dtadir <- "mydatadir" fnames <- list.files( dtadir ) dtalist <

Re: [R] how to loop through dataframe objects in environment

2014-10-15 Thread Vikash Kumar
Hi Stephen, Try out lapply(). It would help you loop through all data frames and sum. Regards, Vikash On Thu, Oct 16, 2014 at 1:58 AM, Stephen HK Wong wrote: > Dear All, > > I have many 50 objects they are all dataframes. Each dataframe has many > rows and four column. I simply want to do an