by David Lillis, Ph.D.
SPSS has the Count Values within Cases option, but R does not have an equivalent function. Here are two functions that you might find helpful, each of which counts values within cases inside a rectangular array. [Read more…] about R Is Not So Hard! A Tutorial, Part 16: Counting Values within Cases