rfm_hist_data: Histogram data

Description Usage Arguments Examples

View source: R/rfm-plots-data.R

Description

Data for generating histograms.

Usage

1
rfm_hist_data(rfm_table)

Arguments

rfm_table

An object of class rfm_table.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# using transaction data
analysis_date <- lubridate::as_date('2006-12-31')
rfm_order <- rfm_table_order(rfm_data_orders, customer_id, order_date,
revenue, analysis_date)

# histogram data
rfm_hist_data(rfm_order)

# using customer data
analysis_date <- lubridate::as_date('2007-01-01')
rfm_customer <- rfm_table_customer(rfm_data_customer, customer_id,
number_of_orders, recency_days, revenue, analysis_date)

# histogram data
rfm_hist_data(rfm_customer)

rfm documentation built on July 21, 2020, 5:06 p.m.