I had thought I could solve this with data.table but looks like it is a bit more difficult. My dataframe looks like this:
userID1 A
userID1 A
userID1 B
userID2 A
userID2 A
The output is supposed to look like this:
userID1 A
userID1 B
userID2 A
Basically create a row for each unique user and item occurence. Most of the examples are about counting unique elements but not about actually extracting these. Any suggestions?