summary_sale: Summarize sales and customers by year

Description Usage Arguments See Also Examples

View source: R/prepare.R

Description

Summarize sales and customers by year

Usage

1
2
3
summary_sale(x, include_revenue = FALSE, rnd = 1, out = NULL,
  title = "Summarize Sales & Customers", note = NULL,
  suppress_notes = FALSE)

Arguments

x

data frame: Table holding sales by year with a minimum of 2 variables (cust_id, year)

include_revenue

logical: If TRUE, revenue by year will also be shown

rnd

numeric: number of decimals to round pct change results

out

character: file path to optional output csv

title

character: title for output table

note

character: note for output table

suppress_notes

logical: If TRUE, returns a data frame only

See Also

Other functions for validating license data: check_dups, count_lines_textfile, summary_churn, summary_initial

Examples

1
2
3
4
5
6
7
library(dplyr)
data(sale)
summary_sale(sale)

# example with made-up license revenue
sale2 <- mutate(sale, revenue = 30)
summary_sale(sale2, rnd = 2, include_revenue = TRUE)

southwick-associates/salic documentation built on Nov. 5, 2019, 9:13 a.m.