Re: [R] Windowing Time Series in The Past

2017-04-01 Thread Bert Gunter
?ts tells you exactly how to do this. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Sat, Apr 1, 2017 at 1:37 PM, Lorenzo Isella

[R] Windowing Time Series in The Past

2017-04-01 Thread Lorenzo Isella
Dear All, I am sure the solution is a one liner, but I am a bit struggling. Given a time series which starts at a given time t_ini, I would like to set a initial start time farther away in the past and have NA before t_ini (I need this to align different time series). For instance