Description Usage Arguments Value See Also Examples
This is a simple calculation that doesn't take into account multi-year licenses, so it should only be used for initial data validation.
1 | calc_churn(x, yr)
|
x |
data frame: Table holding sales by year |
yr |
numeric: year to calculate churn (e.g., churn for 2014 uses sales for 2 years: 2013 and 2014) |
Returns a numeric vector of length 1
Other internal helper functions: format_num
,
pct_round
, print_dat
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.