I am a total R newbie
So pardon me for this silly question
I want to do a regression of the stock log return on time
But I don't know how to extract the date as the X variable
library(quantmod)
getSymbols("AMZN",src='yahoo',from="2010-01-01", to="2018-01-01")
Returns=dailyReturn(AMZN,subset=NULL,type='log',leading=TRUE)
lm(Returns,?????)
Thanks in advance!