Re: [R] time series has no or less than 2 periods

2014-01-06 Thread Rajaraman V
For decomposing a time series into seasonal components, you need at least 2 seasons worth of data. If you have even one data point less, you will see this error message. blockLength <- 52 ts1 <- ts(rnorm(2*blockLength-1), frequency=blockLength) decompose(ts1) # error ts2 <- ts(rnorm(2*blockL

Re: [R] time series has no or less than 2 periods

2014-01-06 Thread Rajaraman V
blockLength <- 37 # can be anything you like ts1 <- ts(rnorm(2*blockLength-1, 0,2), frequency=blockLength) de <- decompose(ts1) # error ts2 <- ts(rnorm(2*blockLength, 0,2), frequency=blockLength) de <- decompose(ts2) plot(de) So the trick is to have at least two periods in your time series. Ev

Re: [R] time series has no or less than 2 periods

2013-10-04 Thread Clint Bowman
ore about the data. Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of David Winsemius Sent: Thursday, October 03, 2013 12:39 PM To: Daniel Hickman Cc: r-help@r-project.org Subject: Re:

Re: [R] time series has no or less than 2 periods

2013-10-04 Thread Daniel Hickman
l have to tell us more about the data. Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf > Of David Winsemius > Sent: Thursday, October 03, 2013 12:39 PM > To: Da

Re: [R] time series has no or less than 2 periods

2013-10-03 Thread William Dunlap
Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf > Of David Winsemius > Sent: Thursday, October 03, 2013 12:39 PM > To: Daniel Hickman > Cc: r-help@r-project.org > Subject: Re: [R] time series has no or less than 2 periods >

Re: [R] time series has no or less than 2 periods

2013-10-03 Thread David Winsemius
On Oct 3, 2013, at 8:32 AM, Daniel Hickman wrote: > Hello, > > > > I have been tasked with taking an excel file that my colleague had > implemented Triple Exponential Smoothing and recreate using R. > > The following image shows the before and after of smoothing out a fixed > interval time