String with dates
Posted: Thu Aug 11, 2016 4:02 am
Hi
I want to generate a string with the dates when a variable has NA values
If I write
I get the sample when avvik is NA. But how can I get the dates of all the NA observations? Frr example, if avvik equals NA in 2000q1 and 2003q4, i want a string with those dates, i.e., "2000q1 2003q4".
Thomas
I want to generate a string with the dates when a variable has NA values
If I write
Code: Select all
smpl="2000q1 2010q4 if avvik=na")Thomas