quantmod getSymbols.csv 的日期问题?
Date issues with quantmod getSymbols.csv?
我正在使用 quantmod 函数将文件上传到 R getSymbols.csv。然而,一旦我上传了文件,日期似乎丢失了,所有的日期都是一样的。
我使用以下代码上传 100 个股票代码:
getSymbols.csv(symbols, env=parent.frame(), dir="E:/data/CData_Files_NB/",
return.class = "xts", extension="csv")
所有的都上传了,但是对于每个股票代码,整个历史的日期是相同的??
[1] "SHFJ" "FSRJ" "RDFJ" "GRTJ" "MTNJ" "SLMJ" "SBKJ" "WHLJ"
[9] "NTCJ" "LHCJ" "MRFJ" "SACJ" "PPCJ" "SGLJ" "MMIJ" "IMPJ"
[17] "TRUJ" "GFIJ" "SOLJ" "TSHJ" "KAPJ" "VODJ" "NPKJ" "TKGJ"
[25] "HARJ" "RMIJ" "SHPJ" "MDCJ" "ZEDJ" "SAPJ" "DSYJ" "NPNJN"
[33] "RMHJ" "MURJ" "BGAJ" "ANGJ" "GNDJ" "TFGJ" "AEGJ" "BATJ"
[41] "EMIJ" "APNJ" "EQSJ" "NHMJ" "ATTJ" "REMJ" "FPTJ" "STXDIVJ"
[49] "CMLJ" "CVHJ" "PIKJ" "MPCJ" "AVIJ" "BLUJ" "CLSJ" "IPLJ"
[57] "BVTJ" "INLJ" "RESJ" "VKEJ" "NEDJ" "GPLJ" "STX40J" "HYPJ"
[65] "TBSJ" "EXXJ" "BAWJ" "PGRJ" "AWAJ" "KIOJ" "SPPJ" "PNCJ"
[73] "ARIJ" "LEWJ" "DLTJ" "ACLJ" "PGLJ" "AIPJ" "RLOJ" "MNDJ"
[81] "REBJ" "LBHJ" "GRFJ" "NGPLTJ" "GLDJ" "CLRJ" "DTCJ" "ADHJ"
[89] "SPGJ" "HLMJ" "TORJ" "MSMJ" "DBXWDJ" "INGJ" "MIXJ" "FGLJ"
[97] "APFJ" "ILVJ" "DBXUSJ" "WEZJ"
这是我的意思的一个例子。所有日期都加载为相同的(最后一个)日期?
> head(SHFJ)
SHFJ.Open SHFJ.High SHFJ.Low SHFJ.Close SHFJ.Volume SHFJ.Adjusted
2015-07-07 5.62 5.62 5.58 5.58 719.1 5.58
2015-07-07 5.53 5.71 5.53 5.71 1021.6 5.71
2015-07-07 5.71 5.80 5.71 5.80 381.4 5.80
2015-07-07 5.80 5.80 5.75 5.75 52.8 5.75
2015-07-07 5.75 5.75 5.62 5.64 33.5 5.64
2015-07-07 5.67 5.75 5.67 5.75 189.2 5.75
我错了什么?它可能与 CSV 文件中的格式有关,还是与时间序列 xts 或 zoo 类 有关?
任何帮助将不胜感激。
这是a bug that has been fixed。从 GitHub 上的 'develop' 分支中提取最新的。
我正在使用 quantmod 函数将文件上传到 R getSymbols.csv。然而,一旦我上传了文件,日期似乎丢失了,所有的日期都是一样的。
我使用以下代码上传 100 个股票代码:
getSymbols.csv(symbols, env=parent.frame(), dir="E:/data/CData_Files_NB/",
return.class = "xts", extension="csv")
所有的都上传了,但是对于每个股票代码,整个历史的日期是相同的??
[1] "SHFJ" "FSRJ" "RDFJ" "GRTJ" "MTNJ" "SLMJ" "SBKJ" "WHLJ"
[9] "NTCJ" "LHCJ" "MRFJ" "SACJ" "PPCJ" "SGLJ" "MMIJ" "IMPJ"
[17] "TRUJ" "GFIJ" "SOLJ" "TSHJ" "KAPJ" "VODJ" "NPKJ" "TKGJ"
[25] "HARJ" "RMIJ" "SHPJ" "MDCJ" "ZEDJ" "SAPJ" "DSYJ" "NPNJN"
[33] "RMHJ" "MURJ" "BGAJ" "ANGJ" "GNDJ" "TFGJ" "AEGJ" "BATJ"
[41] "EMIJ" "APNJ" "EQSJ" "NHMJ" "ATTJ" "REMJ" "FPTJ" "STXDIVJ"
[49] "CMLJ" "CVHJ" "PIKJ" "MPCJ" "AVIJ" "BLUJ" "CLSJ" "IPLJ"
[57] "BVTJ" "INLJ" "RESJ" "VKEJ" "NEDJ" "GPLJ" "STX40J" "HYPJ"
[65] "TBSJ" "EXXJ" "BAWJ" "PGRJ" "AWAJ" "KIOJ" "SPPJ" "PNCJ"
[73] "ARIJ" "LEWJ" "DLTJ" "ACLJ" "PGLJ" "AIPJ" "RLOJ" "MNDJ"
[81] "REBJ" "LBHJ" "GRFJ" "NGPLTJ" "GLDJ" "CLRJ" "DTCJ" "ADHJ"
[89] "SPGJ" "HLMJ" "TORJ" "MSMJ" "DBXWDJ" "INGJ" "MIXJ" "FGLJ"
[97] "APFJ" "ILVJ" "DBXUSJ" "WEZJ"
这是我的意思的一个例子。所有日期都加载为相同的(最后一个)日期?
> head(SHFJ)
SHFJ.Open SHFJ.High SHFJ.Low SHFJ.Close SHFJ.Volume SHFJ.Adjusted
2015-07-07 5.62 5.62 5.58 5.58 719.1 5.58
2015-07-07 5.53 5.71 5.53 5.71 1021.6 5.71
2015-07-07 5.71 5.80 5.71 5.80 381.4 5.80
2015-07-07 5.80 5.80 5.75 5.75 52.8 5.75
2015-07-07 5.75 5.75 5.62 5.64 33.5 5.64
2015-07-07 5.67 5.75 5.67 5.75 189.2 5.75
我错了什么?它可能与 CSV 文件中的格式有关,还是与时间序列 xts 或 zoo 类 有关? 任何帮助将不胜感激。
这是a bug that has been fixed。从 GitHub 上的 'develop' 分支中提取最新的。