I'd like to know how can I summarize (in r code) that object by year and by month and convert in a ts object to make forecast:
My object calls v, and has three columns
Price year month
241. 2016 Sep
252. 2016 Sep
252. 2016 Sep
262. 2016 Sep
267. 2016 Sep
250. 2016 Sep
246. 2016 Sep
250. 2016 Sep
257. 2016 Sep
269. 2016 Sep
# ... with 1,143 more rows
class(v)
[1] "tbl_df" "tbl" "data.frame"
I'd like put in ts object the means values of prices by year and by month this:
Jan Fev Mar May....Nov Dez
2016
2017
2018
Thanks for all.