Perhaps a very simle way is to stack two row vectors, one containing the
original series and the other the revised series and then to use the reshape
command from the Matlab package.

John

On 12/11/06, Leeds, Mark (IED) <[EMAIL PROTECTED]> wrote:
>
> 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}}
>
> ______________________________________________
> [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.
>



-- 
John C Frain
Trinity College Dublin
Dublin 2
Ireland
www.tcd.ie/Economics/staff/frainj/home.html
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]

        [[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.

Reply via email to