r - Date issues with quantmod getSymbols.csv? -
im uploading files r using quantmod function getsymbols.csv. however, once have uploaded files, dates seem lost , dates same.
i use following code upload 100 stock symbols:
getsymbols.csv(symbols, env=parent.frame(), dir="e:/data/cdata_files_nb/", return.class = "xts", extension="csv") the uploaded, each stock symbol, dates entire history same??
[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" here example of mean. dates loaded same (last) date?
> 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 what getting wrong? formatting in csv file or time series xts or zoo classes? apreciated.
this a bug has been fixed. pull latest 'develop' branch on github.
Comments
Post a Comment