Re: [R] counting specific elements in a column of a matrix

2008-03-08 Thread jim holtman
?table e.g., table(your.matrix[,1]) On Sat, Mar 8, 2008 at 3:15 PM, Donna Tucker <[EMAIL PROTECTED]> wrote: > > Hello, > I would like to know how to count the number (cardinality) of a specific > element in a single row of a matrix. At this time I have 30X3 matrix. The > first column is the

[R] counting specific elements in a column of a matrix

2008-03-08 Thread Donna Tucker
Hello, I would like to know how to count the number (cardinality) of a specific element in a single row of a matrix. At this time I have 30X3 matrix. The first column is the treatment number for each data point. I would like to know how many of each treatments are in this matrix. i.e. I wa