03-24-2016 11:38 AM
I have written the below code
array x(2,3)$ Day5-Day7 City1-City3;
do i=1 to 2;
do j=1 to 3;
if x(i,j)='NA' then m(i)=m(i)+1;
Logically, m1 is number of missing values across days and m2 number of missing values across cities. But I am getting other way. Have a look at the image below.
For the first record I should get m1=2 and m2=2.
Please help me regarding this.
Need further help from the community? Please ask a new question.