My last question a couple hours ago led me to realize a new problem: there are a handful of instances where I end up with a string variable that has a "." either at the beginning, or at the end, of the string. If this were the only "." present in the string, it would be easier to remove, but I'm not sure how to tell Stata that I want to remove the "." only if it is at the beginning, or at the end, of the string. Data here:
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str6(var1 var2) ".4.20" "2.01." ".10.09" "12.32." ".1.04" ".98" ".45" "1.24." ".0.98" "1.1" end
Comment