首页 > 解决方案 > 如何解决找不到函数“get.hist.quote”的问题?

问题描述

GSPC <- as.xts(get.hist.quote("^GSPC",start="1970-01-02", quote=c("Open", "High", "Low", "Close","Volume","AdjClose")))

get.hist.quote("^GSPC", start = "1970-01-02", quote = c("Open", : 找不到函数 "get.hist.quote") 中的错误

标签: r

解决方案


通常,当您在调用函数时遇到问题时,您可能有 2 个不同名称的 2 个不同包的不同函数。因此,例如对于get.hist.quote()你可以这样调用它:

package1::get.hist.quote()
package2::get.hist.quote()

推荐阅读