RevenueData | R Documentation |
RevenueData
Cleans and tidies data for use in growth accounting computations for a startup. Turns all dates with 29th of Feb into the 28th.
RevenueData(
value,
from,
to,
start = min(from),
end = max(from),
id,
subscription.length = "year",
subset = rep(TRUE, length(id)),
profiling = NULL,
trim.id = 50
)
value |
A vector of containing the revenue per transaction. |
from |
A vector of class |
to |
A vector of class |
start |
The date at which the analysis outputs should
commence. By default, the earliest date recorded in
|
end |
The date at which the analysis ends, which is used to
determine churn. By default, the most recent date recorded in
|
id |
A vector of |
subscription.length |
The time unit that describes the
subscription length: |
subset |
An optional vector specifying a subset of observations to be used in the calculations |
profiling |
A |
trim.id |
The maximum length of the strings to be used showing ID names (used to avoid situations where string names are so long as to make reading of tables impossible. |
A data.frame
where the rows represent
unique combinations of periods and subscribers. Where a
subscriber has multiple transactions in a period, they are
aggregated. Contains the following variables, along with any
other variables in the data
:
id |
The unique identifier. |
value |
The total fee or price for a subscription. |
from |
The commencement date of a subscription. |
from.period |
The |
period.counter |
The number of the period, where 0 indicates the initial period. |
to |
The end-date of a subscription. |
to.period |
The |
subscriber.from |
The date of a customer's first subscription's commencement. |
subscriber.from.period |
The |
subscriber.to |
The final date of their most recent subscription. |
subscriber.to.period |
The
period of |
last.from |
The
|
last.from.period |
The period of |
churned |
A |
churn |
A
|
tenure |
The number of whole periods from the begining of the first subscription to the end of the most recent. |
observation |
The invoice number for a particular customer, starting from 1. |
observation.within.period |
The number of the subscription for a particular customer, starting from 1 for each new subscription period (as determined by a common to.period) |
.
recurring.value |
The value divided by proportion of the typicaly invoice period that was covered by the invoice. There are some rounding error issues (e.g., leap years, inconsistncies in how people enter data) |
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.