It seems there are leading blanks for a string variable state in 2 out of 5 rounds of data sets I'm working with. Due to these leading blanks after appending, apparently same value of the string appears twice upon tabulating the state variable.
I tried
Code:
keep if state=="XY"
Code:
tab state round
However when I try
Code:
replace state==trim(state)
Could someone please help me out?
Thanks,
0 Response to Eliminating leading blanks from a string
Post a Comment