I have a extrange combination of quotes and asterisk in variable label in my data base... Lamentably I can not remove asterisk and/or quotes in variable label.
I am using a loop because this "kind" of label repeat in diferents variables. I tried with differents combinations:
Example:
Code:
clear all set more off sysuse auto label var foreign `""*Fool label*""' local varlabel : var label foreign local newname = subinstr("`varlabel'","*","",.) label variable `var' "`newname'" Foollabel not found local varlabel : var label foreign local newname = subinstr("`varlabel'",`"*',"",.) label variable `var' "`newname'" too few quotes
Regards
0 Response to Remove combination of quotes and asterisk in variable label
Post a Comment