Page 1 of 1

how to find the zero in the series

Posted: Mon Jan 25, 2016 7:39 pm
by tony
Hi, there
there are some zero values in my series, but I cannot find them because there are so many observations.
So I want to know how to find them and replace them by NAs.
Thanks a lot.

Tony

Re: how to find the zero in the series

Posted: Mon Jan 25, 2016 7:57 pm
by startz
Hi, there
there are some zero values in my series, but I cannot find them because there are so many observations.
So I want to know how to find them and replace them by NAs.
Thanks a lot.

Tony

Code: Select all

x = @recode(x=0,na,x)