I am working with the combinations function (available in the gtools package).  However, rather than store all of the possible combinations I would like to check each combination to see if it meets a certain criteria.  If it does, I will then store it.

I have looked at the combinations code but am unsure where in the algorithm I would be able to operate on each combination.

Thanks!


      
	[[alternative HTML version deleted]]

