I had what I hope will be a simple data cleaning question. I'm importing some data and some individuals in my dataset have *'s beside their name. I want to get rid of these *'s but keep the player name. How would I do so? (Note that this is within a string variable.)
Here's an example of the data:
Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input str59 Player
"Tom Brady"
"Aaron Rodgers*"
"Aaron Rodgers*"
end
I would like my data to look like:
Code:
clear
input str59 Player
"Tom Brady"
"Aaron Rodgers"
"Aaron Rodgers"
end
0 Response to Data cleaning question for string variables
Post a Comment