overlapAmount: quarterly_income

Description Usage Arguments See Also Examples

View source: R/quarterlyIncome.R

Description

Find the dollars earned over the time period defined in the interval for each salary position in the data.table.

Usage

1
quarterly_income(dt, intervals, units = "days")

Arguments

dt

data.table of income data. Must include columns 'Amount' the earning for that interval, 'DateStart' the start date for earning that salary, 'DateEnd' the end date for earning that salary.

intervals

lubridate interval object with specified start and end dates.

units

character string. Units in which the results are desired.

See Also

name

Examples

1
2
3
  qrt_int <- quarterly_intervals(end = as.Date("2019-12-31"),
                                 cutoff = as.Date("2019-09-01"))
  quarterly_income(homeBudget::incomeExample, qrt_int)

rkuttner7/homeBudget documentation built on Dec. 19, 2020, 12:47 p.m.