Hi,
I was trying to understand what the "table" function does. In the documents, it says:
"Returns the contingency table of two vectors A and B. The resulting table F consists of max(A) rows and max(B) columns."
Suppose I've 2 matrix A and B of this form:
A = matrix(1, 1, 10)
B = matrix(seq(10,1, -1), 10, 1)
I should have a matrix of form
C = matrix(1, 10, 1).
But I'm getting
C = matrix(1, 1, 10).
Also, what is the difference between "Group form" and "Scalar form"?
Thank you!
Arijit