Skip to content
Prev 256052 / 398506 Next

force output dimension of table function

On Thu, Apr 07, 2011 at 05:37:08AM +0200, fisken wrote:
The solution using factos has already been posted. if you are really
interested in integers only you could also use tabulate():
[1] 1 1 1 0 2

Note that this excludes zero, though.

cu
	Philipp