values

R Is Not So Hard! A Tutorial, Part 16: Counting Values within Cases

August 19th, 2014 by


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. (more…)