I want to download the prices of Apple starting from 2000.01.01 but it always downloads the data from 1980
library(quantmod)
apple<-getSymbols("AAPL", src="yahoo", from=2000/01/01, auto.assign = F)
Rets<-dailyReturn(apple,subset=NULL,"continuous")
This is the error in the console:
Error in try.xts(x) :
Error in UseMethod("as.xts") : no applicable method for 'as.xts' applied to an object of class "character"
Then I want to calculate the daily returns but it doesn't work. Can someone help me?
Thanks!