**From:** Ann Hess (*hess@stat.colostate.edu*)

**Date:** Tue 22 Apr 2003 - 02:19:36 EST

**Next message:**Dirk Eddelbuettel: "Re: [R] Anyone Familiar with Using arima function with exogenous variables?"**Previous message:**Ravi Varadhan: "Re: [R] nonlinear equation solver?"**Next in thread:**Spencer Graves: "Re: [R] index after rbind"**Reply:**Spencer Graves: "Re: [R] index after rbind"**Reply:**Roger Peng: "Re: [R] index after rbind"

Message-id: <Pine.GSO.4.55.0304211015540.2788@liberator.stat.colostate.edu>

I am using rbind to concatenate two dataframes, but after the rbind I get

a strange "double" index.

I am using rbind a number of times to make one large dataset. Is there a

way to prevent the "double" index? Or is there some other way to

concatenate the data (it looks like merge only works by columns)?

Here is an example of the "double" index.

*>numbers<-(1:5)
*

*>letters<-matrix(c("a","b","c","d","e"),5,1)
*

*>data<-data.frame(letters,numbers)
*

*>doubledata<-rbind(data,data)
*

*> doubledata
*

letters numbers

1 a 1

2 b 2

3 c 3

4 d 4

5 e 5

11 a 1

22 b 2

33 c 3

44 d 4

55 e 5

______________________________________________

R-help@stat.math.ethz.ch mailing list

https://www.stat.math.ethz.ch/mailman/listinfo/r-help

**Next message:**Dirk Eddelbuettel: "Re: [R] Anyone Familiar with Using arima function with exogenous variables?"**Previous message:**Ravi Varadhan: "Re: [R] nonlinear equation solver?"**Next in thread:**Spencer Graves: "Re: [R] index after rbind"**Reply:**Spencer Graves: "Re: [R] index after rbind"**Reply:**Roger Peng: "Re: [R] index after rbind"

*
This archive was generated by hypermail 2.1.3
: Tue 01 Jul 2003 - 09:11:43 EST
*