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
Transform data set to sub-periods with corresponding averages of all other variablesDear Statalist, After been using the advices here for several years without being a member, it is n…
Marginal Estimate in Binary logisticHello, I am writing my masters thesis and I am using SPSS to run binary logistic regression analysis…
renaming regressors when presenting the results?In order to run a regression I named the regressors as x1 x2 x3 x3*x1 and so on (I have around 12 re…
Replacing observations for variables within datasetcurrently my data set looks like this: dataex: gor year p_wine_on ----------------------- copy sta…
STATA frequency table for categorical variables using foreach loops*** I had posted this on Stack Exchange and was directed here: I have been working with panel data …
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