by-subset function

Finds subsets of a dataframe which is split by variables in a formula.