search for: ladylilli

Displaying 2 results from an estimated 2 matches for "ladylilli".

Did you mean: ladylilly
2008 Mar 08
1
counting specific elements in a column of a matrix
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 want to know how many 1's are in column 1, how many 2's are in column 1, etc. I found a couple
2008 Mar 23
2
(no subject)
Is there any way to use more than one color or shape in the same plot. I would like to make the points different colors for various levels of a variable. I have tried a simple 'if' statement in the plot command, but I get an error message. Here is what I have tried and the error message I get: > plot(test, if(test[,1]<8) col="steelblue2" else col="wheat2")Error