On 14-03-2012, at 07:22, sagarnikam123 wrote:

> yes but giving error
>> t<-read.table(file.choose())
>> t<-ts(t)
>> plot(t)
> Hit <Return> to see next plot: 
>> ht<-HoltWinters(t)
> Error in decompose(ts(x[1L:wind], start = start(x), frequency = f),
> seasonal) : 
>  time series has no or less than 2 periods
> 
> what should i do? 

Read HoltWinters help thoroughly.
Your timeseries should have a frequency > 1.

So how about t <- ts(t, start=??, frequency=4)

Berend

______________________________________________
R-help@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.

Reply via email to