I am working on a "data.frame" object and trying to convert it to "ts" object. Below is the sample data:
 date   sales
 5/1/2015   200
 5/1/2015   189.83
 6/1/2015   500
 7/1/2015   400
 8/1/2015   345
 9/1/2015   2948.87
 10/1/2015  3847.39
 10/1/2015  473.45
10/1/2015 is not max date there is much more data.
Below is the Rcode:
f <- data.frame(fs$date, fs$sales )
colnames(f) <- c("date","sales")
head(f, n=5)
class(f) 
flt <- ts(f$sales, start = c(2015,1),freq = 12)
head(flt, n = 10)
str(flt)
For the str I am not getting the 2015 to 6694 correctly.
Time-Series [1:56150] from 2015 to 6694: 200 189.83 500 400 354 ...
How to set to correct time frame with correct sales amount? Thanks in advance!
