Message-ID: <20CC7BAE-C7D2-4E47-9C80-CBFDC19AAC0D@comcast.net>
Date: 2012-05-18T20:22:27Z
From: David Winsemius
Subject: Recoding numeric value
In-Reply-To: <fcacc543-514b-4061-9169-fa56f2ec92a0@d6g2000vbe.googlegroups.com>
On May 18, 2012, at 3:26 PM, Giggles wrote:
> I am a newbie and can't figure out how to recode a numeric value. In
> my data (pharm311), I have a column called "explain" and I need to
> find all the 6's and change it to NA (blank). Could someone help?
is.na(pharm311$explain) <- pharm311$explain==6
And do note: NA is not the same "blank". It is "missing".
>
> I'm sorry if this is too basic, I started messing with R this week and
> got stuck with this problem since yesterday...
>
--
David Winsemius, MD
West Hartford, CT