Description Usage Arguments Value See Also Examples
get_stocks()
allows you to quickly download stock indexes from the the Yahoo Finance without having to run for
loops.
1 2 3 4 5 6 7 8 9 | get_stocks(
tickers,
from = "2010-01-01",
to = Sys.Date(),
periodicity = "daily",
simplify = TRUE,
otherwise = NULL,
quiet = TRUE
)
|
tickers |
A |
from |
A date in the format |
to |
A date in the format |
periodicity |
One of: |
simplify |
If TRUE, a
The defaul is TRUE. |
otherwise |
Argument passed to |
quiet |
Argument passed to |
A tidy tibble
if simplify = TRUE
and a list
of two components if simplify = FALSE
.
1 2 3 4 | # Get stocks from the Merval Stock Index (Argentina)
library(YahooTickers)
ticks <- get_tickers(merval)
get_stocks(ticks, periodicity = "monthly")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.