# “decompose” function in R – time series has no or less than 2 periods

This blog captures an error encountered while using “decompose” function in R on a ts (Time Series) object. The reason for error and fix are described. Error message: Error in decompose(Train.Arrival.a.ts) : time series has no or less than 2 periods Reason: This error came up when I tried to use decompose function on train […]