Skip to content
Prev 278003 / 398506 Next

Need help with table() and apply()

On ?, 2011-11-20 at 17:43 -0500, jim holtman wrote:
I see. The reason I turned the original numeric into factors with 4
levels is so table() would tell me when I had 0 counts of some factor
levels. Your method works very well, and will save me the extra step of
converting to factors. Also, thanks for the explanation on cbind()
converting to numerics. I appreciate the help.