Skip to content
Back to formatted view

Raw Message

Message-ID: <20051025155154.jjkasnokgzgg8c0c@webmail.sph.harvard.edu>
Date: 2005-10-25T19:51:54Z
From: Jennifer Dillon
Subject: making an inicator variable

Hello,

I am almost a total novice, and I am sure there must be an easy (and 
basic) way to turn a variable of 1's and 2's into a variable of zeros 
and ones.  This is in a data frame, but if I could do it with vectors, 
that's all I need.

Can someone tell me how?

Thanks so much,

Jen