search for: recocde

Displaying 1 result from an estimated 1 matches for "recocde".

Did you mean: decode
2004 Jun 08
1
level assignment
Hi, i would like recocde some numeric variables in one step, but hanging unexpected in a level asignment problem? for(i in 2:length(msegmente)) { msegmente[,i] <- as.factor(msegmente[,i]) } Problem is that not every level is in every variable, so the asignment is necessary!? levels(LT.200301) <- c(1=AK,3=GC,1...