Skip to content
Prev 276771 / 398506 Next

window?

I expect the frequency to be set to what I set it at and the window to
return all of the data in the window from the original time series. The
error is not because it is prime. I can generate a time series with just 52
values (or 10) and it still occurs. I am building these objects for use with
the 'forecast' packages and one of the methods 'ets' cannot handle a
frequency above 24 so I set it (or try to) to 1. Will 'window' take z zoo or
xts object? Can I convert from zoo or xts to ts?

-----Original Message-----
From: R. Michael Weylandt [mailto:michael.weylandt at gmail.com] 
Sent: Tuesday, November 08, 2011 2:28 PM
To: Kevin Burton
Cc: r-help at r-project.org
Subject: Re: [R] window?

I'm not entirely sure that your request makes sense: what do you expect the
frequency to be? It makes sense to me as is...Might your troubles be because
53 is prime?

More generally, most people don't like working with the raw ts class and
prefer the zoo or xts packages because they are much more pleasant for most
time series work. You might want to take a look into those.

Michael

On Tue, Nov 8, 2011 at 3:18 PM, Kevin Burton <rkevinburton at charter.net>
wrote: