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
Creating a value that equals the average of other values for the same variable(Sorry about the poor phrasing of the question) My dataset contains variables such as country and pr…
Droping observations with x amount of missing valuesDear all, I'm working with a messy data set with approximately 870 observations at the moment. After…
categorizing dataHi all, I have a dataset includes up to 30 string variables. Some of them are dummy variables and th…
Collinearity error when including continuous variable in dummy regressionI am trying to run the following two regressions to compare the coefficients on the 'iso_str' dummie…
Meta analysis of hazard ratioDear , My name is Hatem Ali I am trying to do meta analysis of hazard ratio to assess effect of rise…
Subscribe to:
Post Comments (Atom)
0 Response to Splitting An Instance into two existing attributes
Post a Comment