r - Going from multiple dummy variables to a single variable -
How do I A simple way of them to convert a variable To do this I think with that you can do will transform Bull into a dummy variable. n are mutually exclusive in a data frame that I can take the dummy variable and Do they include a single variable? In the following example,
K & lt; - data. Frames (H = sample (C (T, F), 100, T)) ifelse (k $ H == T, F, sample (C (T, F)) - & gt; K $ kk $ u & lt; - ifelse (k $ H == T | k $ k == T, F, T)
i
h ,
k or
u with the level of?
ifelse etc., as in this example, but I have my data file several hundred dummy and I manually I am also lazy for.
- The name (k) [applied (k, 1, joe)]
Comments
Post a Comment