get_mrr_metrics: Return data from ChartMogul

Description Usage Arguments Examples

View source: R/get_mrr_metrics.R

Description

get_mrr_metrics(metric = "all", start_date = "2019-01-01", end_date = "2019-03-01") returns a data frame with results.

Usage

1
2
3
4
5
6
7
get_mrr_metrics(
  metric = "all",
  start_date,
  end_date,
  interval = "month",
  plans = NULL
)

Arguments

metric

The endpoint that specifies the type of metric, e.g. all, mrr, customer-count, ltv, customer-churn-rate, mrr-churn-rate

start_date

The start date of the required period of data. An ISO-8601 formatted date, e.g. 2015-05-12.

end_date

The end date of the required period of data. An ISO-8601 formatted date, e.g. 2015-05-12.

interval

One of day, week, or month (default).

plans

A comma-separated list of plan names as configured in your ChartMogul account to filter the results to. Note that spaces must be url-encoded and the names are case-sensitive.

Examples

1
df <- get_mrr_metrics(metric = "all", start_date = "2019-01-01", end_date = "2019-03-01", interval = "day")

jwinternheimer/buffer documentation built on Jan. 8, 2022, 7:51 p.m.