Displaying 1 result from an estimated 1 matches for "_yn".
Did you mean:
_y
2010 Oct 02
3
Non-Parametric Adventures in R
...d ones. So I
end up with yes/no answers to drug usage
for (i in 24:56)
{
X[,i+173] <- ifelse(X[,i] >0,c(1),c(0))
}
I'd like to have been able to make a new variable name based off of the old
variable name (i.e. dropping "_when" from the end of each and replace it
with "_yn")
---------------------------------------------------------------------------------------------------
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
------------------------------------------------------...