uncount function

Duplicate rows according to a weighting variable