Hi, all

Basically, I have unknown number of data that need to be imported and
collapsed row-wisely.

The code below works fine, however the "rbind" function may require 50
arguments if there are 50 data files...

Thus, I would like to explore whether there are any methods in using dynamic
objects (i.e from the resulting objects in the for loop) as an argument in
the *"rbind"* function.



setwd(.........)

import.files <- c("a.txt", "b.txt",  "c.txt",  "d.txt",  "e.txt")
for (i in 1:length(import.files)) {
      assign(paste("imp", i, sep = "."), read.delim(eval(paste(".\\",
import.files[i], sep = "")), header = TRUE))
}

combined <- rbind(*imp.1, imp.2, imp.3, imp.4, imp.5, imp.6*)



Your expertise in resolving this issue would be greatly appreciated.



Steve

	[[alternative HTML version deleted]]

