[R] extending an existing ts object

Gabor Grothendieck ggrothendieck at gmail.com
Tue Sep 1 00:30:20 CEST 2009


Try this:

> x <- ts(1:5); x
Time Series:
Start = 1
End = 5
Frequency = 1
[1] 1 2 3 4 5
> ts(c(x, 6), start = start(x), frequency = frequency(x))
Time Series:
Start = 1
End = 6
Frequency = 1
[1] 1 2 3 4 5 6


On Mon, Aug 31, 2009 at 4:58 PM, Bunny,
lautloscrew.com<bunny at lautloscrew.com> wrote:
> Dear all,
>
> somehow i am still stuck trying to add data to some existing ts data. If
> some new periodical becomes available, i´d like to add these data to my
> existing ts object respectively my database. I just want to add some new
> data at the end of my ts.
> But how can I do this? Dont know why i just cant find how to do this simple
> operation...
>
> i am really happy about any help !
>
> thx in advance.
>
> ______________________________________________
> 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.
>




More information about the R-help mailing list