[R] Conditional Counting with Table
gundalav at gmail.com
Wed Dec 24 06:06:35 CET 2008
I have the following data frame:
What I want to do is to count the string (V1).
But the condition of counting is: if the V2 of the string
is "NM" or "QC" then the count is not increased.
Hence the contigency table will look like this:
Is there a compact way to achieve that in R?
I am thinking of using "table" but can't see
how to impose such condition into it.
- Gundala Viswanath
Jakarta - Indonesia
More information about the R-help