unadjust.data.table: Turn split adjusted dividends into unadjusted dividends.

View source: R/adjustment.R

unadjust.data.tableR Documentation

Turn split adjusted dividends into unadjusted dividends.

Description

Assumes that unadjusted dividends are only accurate to 3 decimal places unless max_decimals specifies otherwise.

Usage

## S3 method for class 'data.table'
unadjust(split_adjusted_dividend, splits, ...)

Arguments

split_adjusted_dividend

A data.table with a dividend column and an index column to merge on.

splits

A data.table with columns splits and index.

...

Additional arguments passed to unadjust.default, for example, max_decimals.

Value

A data.table of merged splits and dividends with new fields shares and unadjusted_dividend. The merge matches on the index field. Missing


e-mu-pi/adjustr documentation built on Sept. 26, 2024, 9:34 p.m.