I need a table showing even the zero counts.

x<-c(1,1,1,2,2,2,5,5,5)
table(x)
x
1 2 5
3 3 3


How can I get this:

x
1 2 3 4 5
3 3 0 0 3

Thanks,

	[[alternative HTML version deleted]]

