# Re: [R] Simple... but...

From: Jorge Ivan Velez <jorgeivanvelez_at_gmail.com>
Date: Wed, 23 Jul 2008 11:07:17 -0400

Hi Shubha,

Is this what you want?

x=c(4,2,2)
y=c(1,5,3)
c(rbind(x,y))
[1] 4 1 2 5 2 3

HTH, Jorge

On Wed, Jul 23, 2008 at 9:17 AM, Shubha Vishwanath Karanth < shubhak_at_ambaresearch.com> wrote:

> OK,
>
> Let x=c(4,2,2)
> y=c(1,5,3)
>
> My result should be c(4,1,2,5,2,3)
>
> Thanks, Shubha
>
> -----Original Message-----
> From: Doran, Harold [mailto:HDoran_at_air.org]
> Sent: Wednesday, July 23, 2008 6:47 PM
> To: Shubha Vishwanath Karanth; r-help_at_stat.math.ethz.ch
> Subject: RE: [R] Simple... but...
>
> x <- c(1,3,5)
> y <- c(2,4,6)
>
> sort(c(x,y))
>
> > -----Original Message-----
> > From: r-help-bounces_at_r-project.org
> > [mailto:r-help-bounces_at_r-project.org] On Behalf Of Shubha
> > Vishwanath Karanth
> > Sent: Wednesday, July 23, 2008 8:55 AM
> > To: r-help_at_stat.math.ethz.ch
> > Subject: [R] Simple... but...
> >
> > Hi R,
> >
> >
> >
> > If
> >
> > x=c(1,3,5)
> >
> > y=c(2,4,6)
> >
> >
> >
> > I need a vector which is c(1,2,3,4,5,6) from x and y.
> >
> >
> >
> > How do I do it? I mean the best way....
> >
> >
> >
> > Thanks, Shubha
> >
> >
> >
> > This e-mail may contain confidential and/or privileged
> > i...{{dropped:13}}
> >
> > ______________________________________________
> > R-help_at_r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
> >
> This e-mail may contain confidential and/or privileged i...{{dropped:10}}
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

R-help_at_r-project.org 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. Received on Wed 23 Jul 2008 - 16:12:46 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 23 Jul 2008 - 16:32:10 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.