Iteration over 10 columns to calculate LinearRegression

Note that term these days accepts strings (I PR’ed this after DataFrames moved to returning strings from names(df)), so slightly more concise:

sum([term("EXPL_$i") for i in 0:100])
3 Likes