Description Usage Arguments Value Examples
Wrapper function around quantmod::getDividend function
1 2 | get_dividends(symbols, start_date = "1990-01-01",
end_date = Sys.Date())
|
symbols |
vector of stock symbol characters. can be 1 or more |
start_date |
starting date for historical dividends. default is '1990-01-01'. Y-m-d format required |
end_date |
ending date for historical dividends. default is current date. Y-m-d format required |
tibble with a record for each dividend distrubtion per security
1 2 3 | library(tidyverse)
symbols <- c("spy", "tlt")
dividends <- symbols %>% get_dividends(., start_date = "2016-01-01")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.