iteratively_split_df.RdConvert a set of data frame variables into keys of a nested list
data.frame to split
An ordered character vector of variables in x that will be nested levels of the output list
A function applied to the data frame, once all variables have been used
Arguments passed to f
A nested list
May assume that every combination of variables produces a data frame to which f can be applied.