如下如何從data.frame使用quantmod包,我拉的股票數據,提取行索引中的R與quantmod包
library(quantmod)
getSymbols('F')
head(F)
這給輸出
F.Open F.High F.Low F.Close F.Volume
2007-01-03 7.56 7.67 7.44 7.51 78671500
2007-01-04 7.56 7.72 7.43 7.70 63545800
2007-01-05 7.72 7.75 7.57 7.62 40563800
2007-01-08 7.63 7.75 7.62 7.73 48941200
2007-01-09 7.75 7.86 7.73 7.79 56732500
2007-01-10 7.79 7.79 7.67 7.73 42398600
# and an unimportant(here) warning regarding download length
我想爲了能夠在這裏提取明顯的日期列,並將數據作爲data.frame處理,通常我會嘗試查找列名稱並將該列拉出來,但日期不包含在列中!
抱歉沒有看到那一個。這裏用data.frame想要的答案可能會不一樣嗎? –
讓其他人決定他們是否認爲它是重複的。 –
重複通常最終會比原稿獲得更多的命中,因爲問題的表達方式是不同的。我的理解是他們不應該被刪除,除非他們是明顯的副本。 –