我正在尝试使用R.中的fimport包从yahoo finance下载货币历史数据。我使用的函数是yahooSeries
。但问题是对于某些货币,它的工作方式如下:
NZD = X,JPY = X
但对于某些货币,它不起作用,例如: NZDAUD = X,错误是:
trying URL 'http://chart.yahoo.com/table.csv?s=NZDAUD=X&a=&b=&c=&d=11&e=08&f=2016&g=d&x=.csv'
cannot open URL 'http://chart.yahoo.com/table.csv?s=NZDAUD=X&a=&b=&c=&d=11&e=08&f=2016&g=d&x=.csv': HTTP status was '404 Not Found'
Error in yahooSeries(symbols = "NZDAUD=X", from = "2010-01-01") :
trying to get slot "data" from an object of a basic class ("character") with no slots".
有人能理解问题是什么吗? 雅虎金融有哪些货币无法下载? 感谢。