You need to provide a reproducible example. At least provide an 'str' of
your data and preferably the output of 'dput'. I am not sure what you data
looks like.
works fine for me when using matrices:
> data
[,1]
[1,] 5
[2,] 2342
[3,] 33
> data1
[,1]
[1,] 6
[2,] 5
[3,] 7
> rbind(data,data1)
[,1]
[1,] 5
[2,] 2342
[3,] 33
[4,] 6
[5,] 5
[6,] 7
>
On Sun, Jun 21, 2009 at 8:31 PM, Xiaogang Yang <[email protected]> wrote:
> Hi,
> I have a array like this
> data:
> 1 5
> 2 2342
> 3 33
> and another
> data1:
> 1 6
> 2 5
> 3 7
> when I do rbind(data,data1)
> I get not what I want
> they become
> 1 5
> 2 2342
> 3 33
> 101 6
> 102 5
> 103 7
>
>
>
>
> but I want to make the index as increasing one by one.
> like
> 1 ..
> 2 ..
> 3 ..
> 4 ..
> 5 ..
> 6 ..
>
> So what command I should use
>
> thank you.
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> [email protected] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html<http://www.r-project.org/posting-guide.html>
> and provide commented, minimal, self-contained, reproducible code.
>
--
Jim Holtman
Cincinnati, OH
+1 513 646 9390
What is the problem that you are trying to solve?
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.