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
What stats are appropriate to assess model fit for nested logit models if Wald is not possible for clustered data?I used vce(cluster) to account for clustering within 9 groups in a set of nested logistic regression…
Difference between catplot and tabplotDear Stata users, I have a dataset comprised of two variables, the foobarx variable is what I conce…
Trying to code for a loop to clean data entry errors and destring my variables.Dear All, I have imported "household survey" in csv format that contains numerous data entry errors…
Specifying model correctly with xtmixedHello, I am attempting to use xtmixed for a repeated measures analysis looking at the effect of an …
How do I combine observations within a dataset?Hi all, I appended two datasets based on ID. I was not able to merge these datasets, because ID did…
Subscribe to:
Post Comments (Atom)
0 Response to Splitting An Instance into two existing attributes
Post a Comment