Learn R Programming

rfinance (version 0.1.0)

get_dividends: Dividend payments history

Description

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

Usage

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

Run this code
# NOT RUN {
dividends <- get_dividends('MSFT')
# }

Run the code above in your browser using DataLab