I made a list (dataList) of data frames. The list looks like this (the first two elements):

[[1]]
    est         cond                           targets
1   400 exo_depth_65                        Hautklinik
2   300 exo_depth_65                       Ostturm_UKM
3   200 exo_depth_65 Kreuzung_Roxeler/Albert_Schweizer
...


[[2]]
    est    cond                           targets
1   400 control                        Hautklinik
2   220 control                       Ostturm_UKM
3   300 control Kreuzung_Roxeler/Albert_Schweizer
...

Now I would like to merge the data frames with rbind. It works fine this way:

rbind(dataList[[1]], dataList[[2]], ...)

but I would like to use lapply or a for loop to get rid of specifying the subscripts. The output of lapply(dataList, rbind) is always

     [,1]   [,2]
[1,] List,3 List,3

Thanks for help...

______________________________________________
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.

Reply via email to