search for: disinct

Displaying 1 result from an estimated 1 matches for "disinct".

Did you mean: distinct
2011 Mar 17
2
Counting
I have a matrix say: 23 1 12 12 0 0 0 1 0 1 0 2 23 2 I want to count of number of distinct rows and the number of disinct element in the second column and put these counts in a column. SO at the end of the day I should have: c(1, 1, 1, 2, 2, 1, 1) for the distinct rows and c(1, 1, 1, 2, 2, 2, 2) for the counts of how many times the elements in the second column exists. Any help is greatly appreciated. -- Thanks, Ji...