Hello all,
I have a list of 250+ schools and want to create a variable that takes the first letter from each word in the school name string.
For example:
If a school is named Lady Irwin School, I'd want to keep just LIS. If a school is named Cama Road English Primary School, I'd want to keep CREPS.
How should I go about doing this?
Thank you in advance!
Related Posts with Creating new variable keeping just the first letter of each word in a string
Paired or unpaired t-testI would like to compare two samples -- one sample includes all the observations in my dataset. Anoth…
forvaluesI ran the following command forvalues state_num = 1 (1) 51 { reg edge percentFRL } Trying to run t…
Value Label on statesI am trying to make a variable (state_num) for the 50 states and D.C. where Alabama ==1, Alaska ==2,…
Convert wide to long formatHello, I would like to convert wide to long format to create a panel data set, so that each 'Countr…
shp2dta returns zero observations in coordinates fileHello everyone, As the title indicates, the command -shp2dta- is giving me a coordinates file with …
Subscribe to:
Post Comments (Atom)
0 Response to Creating new variable keeping just the first letter of each word in a string
Post a Comment