Hi, I am using Stata 14, and i'm trying to drop rows where observations are for some dates are empty: So I used:
drop if fy1beginningdate fy2beginningdate fy3beginningdate fy4beginningdate=="", but got the error "type mismatch" r(109)
They are all of type str10.
However it worked fine when I tried:
drop if fy1beginningdate==""
drop if fy2beginningdate==""
drop if fy3beginningdate==""
drop if fy4beginningdate==""
I just still want to find out why the first one didn't work, perhaps I am getting the syntax wrong
drop if fy1beginningdate fy2beginningdate fy3beginningdate fy4beginningdate=="", but got the error "type mismatch" r(109)
They are all of type str10.
However it worked fine when I tried:
drop if fy1beginningdate==""
drop if fy2beginningdate==""
drop if fy3beginningdate==""
drop if fy4beginningdate==""
I just still want to find out why the first one didn't work, perhaps I am getting the syntax wrong
Comment