Description Usage Arguments Value Author(s) Examples
View source: R/mrrAtDateType.R
It calculates the MRR given date, subscription data, and product type
1 | mrrAtDateType(time_point, subs, type = NULL)
|
time_point |
a date value (have to be date type) |
subs |
subscription data, need to have columns: account_id, user_id, Product, Effective_Start, Effective_End, MRR |
type |
product type, if "NULL", it will return MRR for each product |
a vector of MRR is returned
Hui Lin, longqiman@gmail.com
1 2 3 4 5 6 7 | ## Not run:
add_ons <- c("Forms", "Functions", "Identity", "Domains", "Large Media")
dates <- seq(as.Date("2018-02-01"), lubridate::ceiling_date(Sys.Date(), unit = "month"), "months") - days(1)
dates
add_ons_mrr <- sapply(dates, function(time_point) {mrrAtDateType(time_point, datall_revenue, add_ons)})
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.