Edit:
Because I’m still struggleing with this, here’s additional information:
The matrix has the columns SessionID,UserID,query,[some time based parameters], length in words and length in chars
I want to get a frequency table of query and length, i.e. query, frequency of the query in matrix, length.
table(matrix$query,matrix$length)
yields a table without showing the actual queryname and a whole lot of columns
How do I use table() right to get the table I want?
I think you can use the
tablefunction: it is quite fast and will give the frequency of each query (you can alsos sort it), e.g.: