dummy function

Transform a factor in a set of dummy variables