title: Replacing ones and zeros with factor value
body: <p>I have a data set with a column where each row either has a one or a zero. I need to change all zeros to a factor &quot;s&quot;, and all ones to factor &quot;ns&quot;. It doesn't seem difficult but i cant figure it out, pleas help!</p>