MetricData | R Documentation |
MetricData
Cleans and tidies data for cohort.type in revenue metric calculations.
MetricData(
value,
from,
to,
start,
end,
id,
subscription.length,
by,
cohort.type,
cohort.period,
mergers,
trim.id
)
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: |
by |
The unit of time to report on ("day", "month", "quarter", "year"). |
cohort.type |
How cohorts are to be used when performing the analysis
|
cohort.period |
The period of aggregation to be used, with options of |
mergers |
A data frame with two variables 'id' and 'id.to'. 'id' contains the ids of companies that appeara, based on their data, to have churned, but have in fact merged with the corresponding 'id.to'. |
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 invoice lines
and the variables are:
id
The unique identifier.
value
The total fee/price for a subscription.
from
The commencement date of a subscription.
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,
inconsistencies in how people enter data).
Additional information is included in attributes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.