Monday, March 17, 2008

magic code to transform R data with 'NA' for missing to SAS '.'

array inc dlfib--dlcrp;
do i = 1 to 4;
if inc[i]='NA' then inc[i]=.;
end;
drop i;
run;

No comments: