Dear All, Suppose that I have this dataset,
Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input str22 names
"Albert-Bob-Charles"
"Mary-John"        
"Max"              
end
I'd like to have a variable (say, n) denotes the number of names. So that the value of `n' would be 3,2,1 in the above case. Thanks for your suggestions.