I have a dataset that includes two variables called "NAME" and "TITLE".
NAME should simply be an individual's birth name (e.g. "John William Figueroa") and title should be anything appended to the end (e.g. OBE, MD, PhD, JD). Trouble is, a lot of entries instead have this information in the NAME column so that it reads "John William Figueroa, PhD".
Is there an easy way to use the comma (very frequently present) to shift the title into the next column? I'd use the "split" function but I don't want this broken into two new variables, just want to shift some of the information one line over. Thanks so much for your time!
Best,
Chuck
Related Posts with Splitting An Instance into two existing attributes
matching variablesDear Statalist masters, I have a problem that I don't know how to code properly. I have investors (…
When I enter "logit" or "logistic", error message "unrecognized command: _vce_parserun" shows up.Dear members of statalist, I'm having trouble with using logistic regression. Depvar consists of 0,…
How to create a variable that is the midpoint of another variable with intervals using a loop?I have a variable which consists of numerical values which is between -1 and 1. I want to create a n…
Graphs with mi estimatesDear all, I am currently working with a multiple imputed survey and want to create graphs out of th…
Difference between two matrixHello everyone, It' s my first post here and I am at beginner level, maybe my question is easy for …
Subscribe to:
Post Comments (Atom)
0 Response to Splitting An Instance into two existing attributes
Post a Comment