RevActUserProduct: Calculate revenue accounting matrix per day, user and product

Description Usage Arguments Value Author(s) Examples

View source: R/RevActUserProduct.R

Description

It calculates the accounting matrix for each user and product given date, subscription data and product category.

Usage

1
RevActUserProduct(datall_revenue, dates, dates_full, type)

Arguments

datall_revenue

daily revenue data, need to have columns: user_id, Product, active_date, MRR

dates

a date vector (have to be date type)

dates_full

a full range of dates

type

a vector of product names

Value

A revenue accounting matrix is returned for each day, user and product

Author(s)

Hui Lin, longqiman@gmail.com

Examples

1
2
3
4
5
## Not run: 
team <- c("netlify_team_premium_monthly","Teams","netlify_team_plus_monthly","netlify_team_plus_yearly")
res_0 = RevActUserProduct(total_revenue, dates, team)

## End(Not run)

netlify/NetlifyDS documentation built on Aug. 8, 2020, 4:17 a.m.