当尝试将对象保存()到磁盘时,R错误“对象'get()'未找到”

时间:2016-04-17 20:23:25

标签: r

当我使用get(myDataFrame)按名称获取数据框时,会出现类似的错误

    > head(myData, 2)
           myData.Open myData.High myData.Low myData.Close myData.Volume myData.Adjusted
2012-05-01    21.29515    21.52864   21.25490     21.52864         12600        21.52864
2012-05-02    21.72991    22.01975   21.65745     22.01975         15100        22.01975

myDataFrame -> "myData"
    save(get(myDataFrame), file = paste("C:\\Users\\Admin\\Documents\\trading\\R\\Data\\Yahoo\\", myDataFrame, "_daily.R", sep=""))

Error in save(get(myDataFrame), file = paste("C:\\Users\\Admin\\Documents\\trading\\R\\Data\\Yahoo\\",  : 
  object ‘get(myDataFrame)’ not found

注意:

0 个答案:

没有答案