dfFactor function

Get a factor vector for a data.frame