parse_formula_to_cols function

Convert a formula representation to the columns for input data