Will this do it for you:
> ds1 <- data.frame(x=c(1,2,3,4), y=c(5,6,7,8))
> ds2 <- data.frame(x=c(9,10,11,12), y=c(13,14,15,16))
> ds3 <- data.frame(x=c(1,2,3,4), y=c(5,6,7,8))
> ds4 <- data.frame(x=c(9,10,11,12), y=c(13,14,15,16))
> x.n <- c('ds1','ds2','ds3','ds4')
>
> # create a list of data
Try this:
do.call(rbind, lapply(ls(patt="^ds[0-9]"), get))
On 01/04/2008, Hans W. Borchers <[EMAIL PROTECTED]> wrote:
> I have a set of data frames ds1, ds2, ... each having the same columns
> and column names:
>
> ds1 <- data.frame(x=c(1,2,3,4), y=c(5,6,7,8))
> ds1 <- data.frame(x=c(9,10,11
I have a set of data frames ds1, ds2, ... each having the same columns
and column names:
ds1 <- data.frame(x=c(1,2,3,4), y=c(5,6,7,8))
ds1 <- data.frame(x=c(9,10,11,12), y=c(13,14,15,16))
...
and I would like to combine them into just one data frame like
ds <- rbind(ds1, ds2, ...)
Becau
3 matches
Mail list logo