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
psmatch2 option failureI'm running Stata 14.2 on Win 7E I ran ssc install psmatch2 in anticipation of running models using…
tobit test for homoskedasticityFrom what i understand, conventional OLS heteroskedasticity tests can't be applied for Tobit regress…
Year Dummies for a durationHello, I have data which is as below. ISO_O is the country, StartYear and EndYear are the years of …
ml command for logit panel dataHi All: I am new to ml command. Before writing a more complicated code, I am testing the code on lo…
coding and generating variables CEO-TMT sociodemographic similarity, CEO-TMT shared experience and faultlinesHello everyone, I'm a student and I'm currently having some issues with coding and generating the v…
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