RecurringRevenue: 'RecurringRevenue'

View source: R/recurringrevenue.R

RecurringRevenueR Documentation

RecurringRevenue

Description

Computes recurring revenue, by cohort.

Usage

RecurringRevenue(data, end = Sys.time(), by)

Arguments

data

A data.frame that has the same variables as a RevenueData object.

end

The date on and after which which revenue is ignored. Note that the default value, Sys.time() may not be in the same time zone as your other data, and this can cause unexpected results.

by

The time unit. E.g., "month".

Details

Computed based on being a subscribed on the last second of the time period. Partial revenue is multipled out. For exmaple, if with yearly data, if a customer has an annual license for $1,000 from 1 February to 1 February of the next year, and a second license which starts on 1 January of the last year with a prorated price of $1000/12, then the recurring revenue is $2,000.

Value

A vector showing the recurring revenue by time points.


Displayr/flipStartup documentation built on May 2, 2024, 6:24 p.m.