I'm looking to add a column that is renamed based upon the value of a string in the same row.
For example, how could I to create a new column that shows the number or text at the very end of PlayerID in this table? As such, I want this:
PlayerID
Hank Aaron + 7
Babe Ruth + 5
Ted Williams + 2i
Hank Aaron + Outfield
Lou Gehrig + FirstBase
To become this:
PlayerID NewColumn
Hank Aaron + 7 7
Babe Ruth + 5 5
Ted Williams + 2i 2i
Hank Aaron + Outfield Outfield
Lou Gehrig + FirstBase FirstBase
As you can see above, I need everything after the plus sign to be included in the new column. Sometimes the value after the plus sign is a number, sometimes it is characters and a number, and sometimes it is just characters. Thanks in advance!