split_cols_by function

Declaring a column-split based on levels of a variable