I have a variable that captures actual household address, say, "76 Longstreet Albertville Gauteng". I want to generate another variable (string) that captures the province that the household is located in this case Gauteng. The text is case variaed (i.e. there are caps and lower cases for the address).
Related Posts with How to extract a word from a string variable.
execute from top doesn't workDear all, in the do file editor, the "tools / execute (do) from top" command doesn't work. I click …
How to Construct Daily Food Consumption ScoreDear Statalisters, I am working with a dataset that contains information on household consumption of…
Specifying a CorrelationSay I'd like to simulate academic data Code: clear * set seed 1066 cls matrix input mCorr = (1, .…
Problem with "Graph already exists" messageDear Statalist, I'm having problems with clearing graph memories even after using the "graph drop _…
How to get rows into columns when non transposable?Hi all , I was wondering whether someone could help me with a command so I can convert my data into…
Subscribe to:
Post Comments (Atom)
0 Response to How to extract a word from a string variable.
Post a Comment