gather_attrs function

Gather attributes from data frame variables