i've been struggling import timeseries dataset , then, plot data date, run decompose & run arima.
the problem seems using ts() method , how set frequency , start date. sample data is:
dates,salesvol 1/07/2011,320 2/07/2011,400 3/07/2011,250 4/07/2011,300 5/07/2011,345 salesvol <- read.csv("salesvol.csv", header=true, sep=",", stringsasfactors = false) salesvol[[1]] <- as.date(salesvol[[1]],format='%d/%m/%y') salesvol_ts <- ts(salesvol$saleesvol, frequency = 365, start=c(2011,7))
i've tried various options start not sure set to? appreciated.
thanks
Comments
Post a Comment