reframe function

Reframe a data frame