Earliest available data on yahoo to download
On Wed, Jul 1, 2009 at 9:05 PM, R_help Help<rhelpacc at gmail.com> wrote:
Is there anyway to avoid this default at all? Thank you.
You can use the Defaults package (it's loaded with quantmod) to set your own preferred default arguments to many functions. See the Defaults package vignette for details, but this should get you started:
library(quantmod)
setDefaults(getSymbols.yahoo,from='1900-01-01')
getSymbols("AAPL")
[1] "AAPL"
head(AAPL)
AAPL.Open AAPL.High AAPL.Low AAPL.Close AAPL.Volume AAPL.Adjusted 1984-09-07 26.50 26.87 26.25 26.50 2981600 3.02 1984-09-10 26.50 26.62 25.87 26.37 2346400 3.01 1984-09-11 26.62 27.37 26.62 26.87 5444000 3.07 1984-09-12 26.87 27.00 26.12 26.12 4773600 2.98 1984-09-13 27.50 27.62 27.50 27.50 7429600 3.14 1984-09-14 27.62 28.50 27.62 27.87 8826400 3.18 HTH, Josh -- http://www.fosstrading.com
On Wed, Jul 1, 2009 at 10:01 PM, Sean Carmody<seancarmody at gmail.com> wrote:
Assuming you are using quantmod, try the from argument. For example:
getSymbols("^AORD", from="2000-01-01")
will retrieve data going back to 2000 from yahoo while
getSymbols("^AORD")
defaults to just retrieving data from the last two years.
Sean.
--
Sean Carmody
The Stubborn Mule
http://www.stubbornmule.net
http://twitter.com/seancarmody