get_dividends: Dividend payments history

Description Usage Arguments Value Examples

View source: R/get_dividends.R

Description

This function downloads all available dividend payments history of a given company.

Usage

1
2
3
4
5
6
get_dividends(
  symbol,
  from = "1950-01-01",
  to = Sys.Date(),
  split_adjust = FALSE
)

Arguments

symbol

Specifies the ticker or symbol the user wants to download the data of, in the form of a string. Example: 'MSFT'

from

Minimum date to get data from

to

Maximum date to get data of

split_adjust

Boolean deciding if data should adjusted with splits

Value

Returns a tibble

Examples

1
dividends <- get_dividends('MSFT')

rfinance documentation built on Oct. 26, 2021, 9:07 a.m.