Re: [R] binding data.frames with sequential names

2010-12-13 Thread Phil Spector
Tony - Try do.call(rbind,lapply(paste('X',1:i,sep=''),get)) (You've created the names, but you need to tell R to use the objects which have those names. That's what get() does.) You'd probably be better served by putting the data frames you create into a list as they are created, rathe

[R] binding data.frames with sequential names

2010-12-13 Thread Anthony Fristachi
Hello, I have data frames X1 to X19 I want a simple way to bind them as the next run(s) will generate many more sequential data frames. I tried the following with i = 19: > my.list <- as.list(paste("X",1:i,sep="")) > new.data <- do.call("rbind", my.list) > new.data [,1] [1,] "X1" [2,