Description Usage Arguments Examples
Aquire Bills and Bonds allotment data from the US treasury
1 | getSymbols.treasury(Symbols, env, return.class = "xts", ...)
|
Symbols |
One or more treasury 'issue' or 'maturity' bills/bonds symbols |
env |
possibly returned data is loaded into this environment |
return.class |
call of the object sent back to the user |
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
library(quantmod)
## issue dates
treasuryTRISS10YEARNOTE <- getSymbols("TRISS10YEARNOTE", src = "treasury", auto.assign = FALSE)
head(treasuryTRISS10YEARNOTE)
## maturity dates
treasuryTRMTR10YEARNOTE <- getSymbols("TRMTR10YEARNOTE", src = "treasury", auto.assign = FALSE)
head(treasuryTRMTR10YEARNOTE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.