I have data as follows :
User_Id Website Day
A Google Monday
A Facebook Tuesday
A Linkedin Wednesday
B Facebook Tuesday
B Linkedin Wednesday
I want to achieve something like this:
User_ID Google Facebook Linkedin Monday Tuesday Wednesday
A 1 1 1 1 1 1
B 0 1 1 0 1 1
The columns now represent the number of times it is appearing for each users. How can I do this in R ?