Hi there!
What's the best way to count the number of integers in a string variable? Here is what the dataset looks like:
I am hoping to create a new variable that is equal to 1 in row #1, 5 in row #2, and so forth.
Thanks!
What's the best way to count the number of integers in a string variable? Here is what the dataset looks like:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str14 var "ad1v" "2kjghgsf6785dg" "456" "245gsf678578dg" "245gsfdg" end
Thanks!
Comment