expand_to_tidy function

Expand a matsindf data frame