Skip to content

Calculates the times passed between dates, e.g. how many years occured between 2020 and 2021 = 1.

Usage

diff_years(base_date, tap_date)

Arguments

base_date

lower bound date, must be a date clase object.

tap_date

upper bound date, must be a date clase object.

Value

a one row data.table keeping original names.

Author

Alejandro Abraham a.abraham@innovationteam.eu