I am working with time series and I have encountered a problem with R not recognizing a series properly. I can do the tests and fitting, but when I want to decompose the series I got a message: d<-decompose(data) Error in decompose(dane) : time series has no or less than 2 periods Maybe I have made a mistake in defining the TS? However, when I input time(data), R correctly recognizes which value corresponds to which year. I give the code for data formating below: library(urca) data(npext) x<-npext[c("year","unemploy")] #Nelson & Plosser extended data set x<-c(na.omit(npext$unemploy)) #getting rid of NA's for initial years from the data set data<-ts(x, start=1890, frequency=1) Thanks. [[alternative HTML version deleted]]