Skip to contents

Create a summary of the event-log by month.

Usage

elog_summary_month(elog, year = 2024)

Arguments

elog

Event log, a data.frame with field cust for the customer ID and field date for the date/time of the event, which should be of type Date or POSIXt. If sales or returns field is present, it will be aggregated. See details for more information.

year

Numeric. Year to filter the summary by.

Examples


elog_summary_month(elog_validated$elog, year = 2023)
#> # A tibble: 0 × 9
#> # Groups:   first_year [0]
#> # ℹ 9 variables: first_year <dbl>, first_month <dbl>, new_customers <int>,
#> #   sales <dbl>, transactions <int>, avg_transactions <dbl>,
#> #   items_purchased <int>, items_per_transaction <dbl>, aov <dbl>