[R] Using quantmod to obtain current Dow Jones index
Dennis Fisher
fisher at plessthan.com
Wed Sep 6 17:11:43 CEST 2017
R 3.4.1
OS X
Colleagues,
I am just learning to use the quantmod package and I have encountered something that I don’t understand.
This works:
getSymbols("^DJI")
This does not work:
getQuote("^DJI”)
It returns only NAs:
Trade Time Last Change % Change Open High Low Volume
^DJI <NA> N/A N/A N/A N/A N/A N/A N/A
Two questions:
1. Is there some way to obtain the current DJI using quantmod?
2. If not, can someone suggest alternatives?
Dennis
Dennis Fisher MD
P < (The "P Less Than" Company)
Phone / Fax: 1-866-PLessThan (1-866-753-7784)
www.PLessThan.com
More information about the R-help
mailing list