Re: [R] Recoding numeric value

2012-05-19 Thread Giggles
Thanks so much! I thought R places NA for missing values. I'll have to read up on it more. Thanks again! On May 18, 2:23 pm, Marc Schwartz marc_schwa...@me.com wrote: On May 18, 2012, at 2:26 PM, Giggles wrote: I am a newbie and can't figure out how to recode a numeric value. In my data

Re: [R] Recoding numeric value

2012-05-19 Thread Giggles
Thank you very much!! On May 18, 2:22 pm, David Winsemius dwinsem...@comcast.net wrote: 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

[R] Recoding numeric value

2012-05-18 Thread Giggles
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? I'm sorry if this is too basic, I started messing with R this week and got stuck with this

Re: [R] Recoding numeric value

2012-05-18 Thread David Winsemius
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

Re: [R] Recoding numeric value

2012-05-18 Thread Marc Schwartz
On May 18, 2012, at 2: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? I'm sorry if this is too basic, I started