rfm_heatmap_data {rfm} | R Documentation |
Heatmap data
Description
Data for generating heatmap.
Usage
rfm_heatmap_data(rfm_table)
Arguments
rfm_table |
An object of class |
Examples
# using transaction data
analysis_date <- as.Date('2006-12-31')
rfm_order <- rfm_table_order(rfm_data_orders, customer_id, order_date,
revenue, analysis_date)
# heat map data
rfm_heatmap_data(rfm_order)
# using customer data
analysis_date <- as.Date('2007-01-01')
rfm_customer <- rfm_table_customer(rfm_data_customer, customer_id,
number_of_orders, recency_days, revenue, analysis_date)
# heat map data
rfm_heatmap_data(rfm_customer)
[Package rfm version 0.3.0 Index]