Created
November 5, 2012 06:25
-
-
Save rrguntaka/4015659 to your computer and use it in GitHub Desktop.
Get 2011 Yearly quotes using R tseries and zoo package
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get.quotes.2011 <- function(symbol){ | |
get.hist.quote(instrument=symbol, start="2011-01-01", | |
end="2011-12-31", quote="AdjClose", provider="yahoo", | |
origin="1970-01-01", compression="d", retclass="zoo") | |
} | |
spy <- get.quotes.2011('spy') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment