Tidyr

Counting transaction items

In this post I will show you how to count the number of items a user has selected (or bought, or triggered) within a data feed. Transaction data can be a treasure trove of user behavior if you can get it into the right format for counting. I have put together a simple example below on how you can use R to get counts of user click behaviors at various levels of aggregation.