I have this 5 months of data starting from Jan 1, 2019, to May 31, 2019. The data frame has two columns: date and count (total of 151 entries).
I would like to convert this to a time series object (ts) for the analysis. I am using r for the analysis.
I tried a few alternatives to convert to ts object but while making seasonal plots, it shows for different years which is incorrect because it has a daily entry of count for five months only (total of 151 entries).
I tried this:
df_ts ← ts(df$Count, start = c(2019, 1), frequency = 30)
df_ts ← ts(df$Count, frequency = 7)
date_count.csv (2.4 KB)