Code:
+-------+ | marks | |-------| 1. | 21 | 2. | 20 | 3. | 15 | 4. | 33*‡ | 5. | 16 | |-------| 6. | 16 | 7. | 29 | 8. | 36*‡ | 9. | 30*‡ | 10. | | |-------| 11. | 13**† | 12. | 13**† | +-------+
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str7 marks "21" "20" "15" "33*‡" "16" "16" "29" "36*‡" "30*‡" "" "13**†" "13**†" end
0 Response to Destring variable and generate a new variable taking characters ( "*" and "‡") from the old variable
Post a Comment