Hello,
I'm trying to remove numbers from the end of string values in a variable. Some but not all of the observations have numbers. The data looks like this:
BANK OF AMERICA 0547
CITIGROUP
R W BAIRD 356
CREDIT SUISSE 03487
BARCLAYS
The numbers are always separated from the end of the string title by a space, but they are different lengths.
I think I need to use the regexm command but am not clear on how it works and any help would be much appreciated!
Thank you so much.
All the best,
Anna
I'm trying to remove numbers from the end of string values in a variable. Some but not all of the observations have numbers. The data looks like this:
BANK OF AMERICA 0547
CITIGROUP
R W BAIRD 356
CREDIT SUISSE 03487
BARCLAYS
The numbers are always separated from the end of the string title by a space, but they are different lengths.
I think I need to use the regexm command but am not clear on how it works and any help would be much appreciated!
Thank you so much.
All the best,
Anna
Comment