Skip to content
Prev 319298 / 398506 Next

loading data frames and rbind them

Hi Mario!

I'm not really familiar with this kind of manipulations, but I think you 
can do it more or less like this (some people on this list might give a 
more detailed answer):

#Create an empty named list
list_df <- vector(mode="list", length=length(lista_rec_c))
names(list_df) <- lista_rea_c    ##or some part of it using gsub or 
something similar

#Import
for (i in lista_rea_c) {
     list_df[[i]] <- read.xlsx(...)
}

#rbind
do.call(rbind, list_df)

This probably won't work like this exactly but you should be able to 
make the modifications.

HTH,
Ivan

--
Ivan CALANDRA
Universit? de Bourgogne
UMR CNRS/uB 6282 Biog?osciences
6 Boulevard Gabriel
21000 Dijon, FRANCE
+33(0)3.80.39.63.06
ivan.calandra at u-bourgogne.fr
http://biogeosciences.u-bourgogne.fr/calandra

Le 12/03/13 15:52, A M Lavezzi a ?crit :