Displaying 1 result from an estimated 1 matches for "actup".
Did you mean:
actu
2004 Jan 16
2
Weird problem with trying to change a variable
I have a dataframe called cvar, with two variables (among many others)
called MSA and ACTUP. Both are numeric. This was working fine. Then I
found out that for two MSAs, ACTUP should be 1, not 0.
so I tried
cvar$ACTUP[cvar$MSA == 6840] <- 1
cvar$ACTUP[cvar$MSA == 5360] <- 1
but when I try
table(cvar$MSA, cvar$ACTUP)
the level of ACTUP for those two MSAs has not changed, and...