Skip to content

yahooSeries - how to access the date field?

3 messages · zubin, Moshe Olshansky, Jeff Ryan

#
Try 
rownames(zdata)
--- On Mon, 7/7/08, bina <binabina at bellsouth.net> wrote:

            
#
An alternate method that offers a bit of simplicity for plotting -- as
well as the use of true time-indexing:

library(quantmod)

getSymbols("^NDX;UYG", from='2006-01-01')

# will load 2 objects - NDX and UYG into your environment

# then you can plot any component by selecting the column, or
alternately the whole OHLCV series:

plot(NDX) #plots the Open, and a warning :)
plot(as.zoo(NDX)) # plots O,H,L,C,V


plot(Cl(UYG))  # plots the Close


# or

barChart(NDX)
candleChart(UYG)

See http://www.quantmod.com/examples for some additional quantmod
tools that may be of use.

HTH
Jeff
On Sun, Jul 6, 2008 at 7:51 PM, bina <binabina at bellsouth.net> wrote: