>require(quantmod)
>setSymbolLookup(SDB=list(name="000001.sz",src="yahoo"))
>getSymbols("SDB",from="2010-01-01",to="2010-01-10")
> SDB
000001.SZ.Open 000001.SZ.High 000001.SZ.Low 000001.SZ.Close
2010-01-04 24.52 24.58 23.68 23.71
2010-01-05 23.75 23.90 22.75 23.30
2010-01-06 23.25 23.25 22.72 22.90
2010-01-07 22.90 23.05 22.40 22.65
2010-01-08 22.50 22.75 22.35 22.60
我想要两种输出:
1。
> SDB
date open high low close
2010-01-04 24.52 24.58 23.68 23.71
2010-01-05 23.75 23.90 22.75 23.30
2010-01-06 23.25 23.25 22.72 22.90
2010-01-07 22.90 23.05 22.40 22.65
2010-01-08 22.50 22.75 22.35 22.60
2.
> SDB
date open high low close
1 2010-01-04 24.52 24.58 23.68 23.71
2 2010-01-05 23.75 23.90 22.75 23.30
3 2010-01-06 23.25 23.25 22.72 22.90
4 2010-01-07 22.90 23.05 22.40 22.65
5 2010-01-08 22.50 22.75 22.35 22.60
我怎么才能得到它?