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
Percentage in bar graphHello everyone. I am trying to create a bar chart which evaluates the labor market participation by…
Principal Component AnalysisHello, I am carrying out a Principal Component Analysis on a rather large dataset (6500 observation…
Regression with year and country fixed effectsHi there, First of all I am new to this forum and I've been trying to find a relatable post but was…
Pearson correlation matrix with multiple significance starsHi Statalisters, I'm trying to present Pearson's correlation matrix with significance stars at leve…
how to make a descriptive statistics like the picture (including Jarque‐Bera test for normality) and output the result"sum,de" did not include Jarque‐Bera test for normality, and how to use the panel data to achieve th…
Subscribe to:
Post Comments (Atom)
0 Response to Splitting An Instance into two existing attributes
Post a Comment