我正在尝试使用以下方法检索SP500数据:
SP500 <- getSymbolsundefined"^GSPC", from ="2000-01-01", to = "2016-08-31", auto.assign = FALSE)
但是我收到了以下错误:
Error: unexpected string constant in "SP500 <- getSymbolsundefined"^GSPC""
有什么建议吗?
答案 0 :(得分:0)
SP500 <- getSymbols("^GSPC", from ="2000-01-01", to = "2016-08-31", auto.assign = FALSE)