Skip to content
Prev 338175 / 398500 Next

dummy coding problem

On 03/27/2014 05:34 AM, Si Qi L. wrote:
Hi Si Qi,
It looks to me as though Employment.time$V1 is a column of a data frame 
and thus should be treated like a vector, not a matrix. If you want a 
dichotomous (two-valued) transformation of it, try this:

dummy<-Employment.time$V1 != "Over 4 years"

Jim