Unstack function

Unstack a column from a data frame and include additional variables.