I\'m trying to generate all combinations of rows in my data frame in a nested list, fit and predict a linear model on every set, and select the best set (minimum error).