[R] Re placing null values (#NULL!)
Michael Knudsen
micknudsen at gmail.com
Sat Jul 18 08:23:48 CEST 2009
On Fri, Jul 17, 2009 at 10:37 PM, PDXRugger<J_R_36 at hotmail.com> wrote:
> So i need to replace the the #NULL! with 0. I have tried:
>
> Props_pct_vacant<-Props_pct_vacant[Props_$pct_vacant !="#NULL!"]
Try this instead:
Props_$pct_vacant[which(Props_$pct_vacant=="#NULL!")] = 0
--
Michael Knudsen
micknudsen at gmail.com
http://lifeofknudsen.blogspot.com/
More information about the R-help
mailing list