dataframe - R: Help using dummyVars and adding back into data.frame -
I have a data of 373127 objects. Frame is some variables of the 193 variable that I want to use the dummyvers () to separate each factor into my column. I then turn different dummy variable columns into my original data. Frame, so I thought I could apply the whole thing, but some is not working and I do not know what it is. Sample:
dat_final & lt; - Applicable (dummies.var1, 1, function (x) {dummies.var1 <- dummyVars (~ dat1 $ factor.var1 -1, data = dat1}}) Thanks !
The real answer is ... .. do not do this it's almost not necessary.
Comments
Post a Comment