Displaying 1 result from an estimated 1 matches for "countrows".
Did you mean:
countries
2012 Dec 17
2
Why does matrix selection behave differently when using which?
Dear R community,
I have a medium sized matrix stored in variable "t" and a simple function "
countRows" (see below) to count the number of rows in which a selected
column "C" matches a given value. If I count all rows matching all pairwise
distinct values in the column "C" and sum these counts up, I get the number
or rows of "t". If I delete the "which" c...