[R] Simple... but...

Nutter, Benjamin NutterB at ccf.org
Wed Jul 23 15:22:35 CEST 2008


> x <- c(1,3,5)
> y <- c(2,4,6)
> xy <- 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
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



P Please consider the environment before printing this e-mail

Cleveland Clinic is ranked one of the top hospitals
in America by U.S. News & World Report (2007).  
Visit us online at http://www.clevelandclinic.org for
a complete listing of our services, staff and
locations.


Confidentiality Note:  This message is intended for use\...{{dropped:13}}



More information about the R-help mailing list