我正在尝试获取> 10年的数据,但我无法使用getSymbols()或chartSeries()找到如何执行此操作。
https://www.quantmod.com/documentation/getSymbols.html https://www.quantmod.com/documentation/chartSeries.html
雅虎自2007-01-03以来只有数据吗?
library(quantmod)
getSymbols("AAPL")
chartSeries(AAPL, type="line", subset="last 15 years")
Warning message:
In last.xts(c(13.702, 13.346, 13.619, 13.65, 13.727, 15.045, 15.234, :
requested length is greater than original
chartSeries(AAPL, type="line", subset="last 11 years") # this works