I have a logfile with lots of information. Here is the sample:
event_type | video |id
------------------------------------------------
load_video" | Video -math | 21
load_video" | Video -math | 21
load_video" | Video - Math and Speed | 22
play_video" | Video -math | 21
seek_video" | Video -math | 21
pause_video" | Video -math | 21
seek_video" | Video -math | 21
play_video" | Video -math | 21
pause_video" | Video -math | 21
play_video" | Video - Math and Speed | 22
pause_video" | Video - Math and Speed | 22
stop_video" | Video - Math and Speed | 22
I want to make a transformation by users to get this table.
id Video -math Video - Math and Speed
| load | play | seek |pause| stop | load | play | seek | pause | stop
21 | 2 | 2 | 2 | 2 | 0 | na | na | na | na | na
22 | na | na | na | na | na | 1 | 1 | 0 | 1 | 1
I have started to use reshape package, but I don't know how can I use it with 3 column.
Edit -> I don't want to make 2 headers. Just I want to show what is my goal.