Re: [R] Multiple cbind according to filename

2012-05-26 Thread Uwe Ligges
On 25.05.2012 16:42, Ken wrote: Matthew Ouellette gmail.com> writes: Hi all, I'm just a beginner with R but I have not been able to search for any relevant answer to my problem. I apologize if it has in fact been asked before. Recently I've realized that I need to combine hundreds of pair

Re: [R] Multiple cbind according to filename

2012-05-25 Thread Rui Barradas
Hello, You can split the filenames vector according to a pattern, filenames <- c("a1.csv", "a2.csv", "b1.csv", "b2.csv", "c1.csv", "c2.csv") fnpattern <- gsub("[[:digit:]]", "", filenames) df.groups <- split(filenames, fnpattern) and then use this list to process each of the groups of data.frame

Re: [R] Multiple cbind according to filename

2012-05-25 Thread Ken
Matthew Ouellette gmail.com> writes: > > Hi all, > > I'm just a beginner with R but I have not been able to search for any > relevant answer to my problem. I apologize if it has in fact been asked > before. > > Recently I've realized that I need to combine hundreds of pairs of data > frames.

Re: [R] Multiple cbind according to filename

2012-05-25 Thread Ken
Matthew Ouellette gmail.com> writes: > > Hi all, > > I'm just a beginner with R but I have not been able to search for any > relevant answer to my problem. I apologize if it has in fact been asked > before. > > Recently I've realized that I need to combine hundreds of pairs of data > frames.

[R] Multiple cbind according to filename

2012-05-25 Thread Matthew Ouellette
Hi all, I'm just a beginner with R but I have not been able to search for any relevant answer to my problem. I apologize if it has in fact been asked before. Recently I've realized that I need to combine hundreds of pairs of data frames. The filenames of the frames I need to combine have unique