Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/65.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/entity-framework/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用quantmod在环境中加载rda/RData文件_R_Quantmod - Fatal编程技术网

如何使用quantmod在环境中加载rda/RData文件

如何使用quantmod在环境中加载rda/RData文件,r,quantmod,R,Quantmod,问题是,如何在使用quantmod的环境中加载带有股票时间序列的rda/RData文件 我正在使用以下代码下载AAPL时间序列数据 data <- getSymbols("AAPL",auto.assign=FALSE) save(data,file="/home/user/folder/AAPL.rda") rm(data) 但是它没有加载到数据环境中 > ls(data) character(0) 如何找到解决方案?库(FinancialInstruments)是您想要的。。

问题是,如何在使用quantmod的环境中加载带有股票时间序列的rda/RData文件

我正在使用以下代码下载AAPL时间序列数据

data <- getSymbols("AAPL",auto.assign=FALSE)
save(data,file="/home/user/folder/AAPL.rda")
rm(data)
但是它没有加载到
数据
环境中

> ls(data)
character(0)

如何找到解决方案?

库(FinancialInstruments)是您想要的。。。函数getSymbols.FI()将完全满足您的需要。。。setSymbolLookup()是另一个。。您将.rda文件保存在这样的文件夹中。。。。工作目录中的data1/data1.rda…

库(FinancialStritments)就是您想要的。。。函数getSymbols.FI()将完全满足您的需要。。。setSymbolLookup()是另一个。。您将.rda文件保存在这样的文件夹中。。。。工作目录中的data1/data1.rda…

如果要加载文件,只需使用<代码>加载
。请尝试加载(“/home/user/folder/AAPL.rda”,envir=data)
。如果要加载文件,请使用<代码>加载。尝试加载(“/home/user/folder/AAPL.rda”,envir=data)。
2009-08-28    172.27    172.49   168.53     170.05   113425200      22.36121
2009-08-31    168.16    168.85   166.50     168.21    77834400      22.11925
2009-09-01    167.99    170.00   164.94     165.30   117257000      21.73660
2009-09-02    164.62    167.61   164.11     165.18    91062300      21.72082
> ls(data)
character(0)