March 2019
Beginner to intermediate
464 pages
10h 57m
English
Now, let's see if we can find any noticeable patterns in sales channels and engagement. We are going to analyze how the engaged and non-engaged customers are distributed among different sales channels. Let's first look at the following code:
salesChannel <- df %>% group_by(Engaged, Channel=Sales.Channel) %>% summarise(Count=n())
As you can see in this code snippet, we are using the group_by function in R to group by the Sales Channel and Engaged variables. Then, using the n() function, we will count the number of customers in each group. Once you have run this code, the salesChannel DataFrame will look as follows:

As you will ...
Read now
Unlock full access