[R] I think a simple question
    Greg Snow 
    Greg.Snow at intermountainmail.org
       
    Wed Nov 15 00:08:30 CET 2006
    
    
  
A couple of possibilities:
> sort( c(tempin, tempin+5) )
Or 
> c( rbind(tempin, tempin+5) )
HTH, 
-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at intermountainmail.org
(801) 408-8111
 
-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Leeds, Mark (IED)
Sent: Sunday, November 12, 2006 3:20 PM
To: r-help at stat.math.ethz.ch
Subject: [R] I think a simple question
I have index ( of a vector ) values of say
tempin<-c(1 31 61   91 121     all the way upto 1411)
What I want is a function that takes in a number say, x = 5, and gives
me an new vector of
tempout<-1  6 31  36 91  96  121  126  .......... 1411   1416
This can't be so hard but I can't get it and I've honestly tried.
Obviously, tempin + 5 gives me the missing values but I don't know how
to interwine them in the order above. Thanks for any help you can
provide.
                                                               mark
--------------------------------------------------------
This is not an offer (or solicitation of an offer) to
buy/se...{{dropped}}
______________________________________________
R-help at stat.math.ethz.ch 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.
    
    
More information about the R-help
mailing list