Question: # Problem 1 Write one expression using 'dplyr' functions and the '>%>' operator to create the summary table below. This table contains the number of


# Problem 1 Write one expression using 'dplyr' functions and the '>%>' operator to create the summary table below. This table contains the number of claims, average claim amount ('total_claim_amount' variable), and average customer lifetime value by 'customer_state' and 'months_since_last_claim' binned into 12 month categories. **Hint**: You will need to create the 'month_category' variable using 'cut_width()' before you calculate the summaries by groups. \"'{r}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
