I have a variable consisting of characters and numbers in a string format. How can I separate the character part of a variable and the numbers part? The positioning of a number part is not in the same sequence for all observations so that I couldn't use a substring option. Is there any general way to identify the number part and separate it?
Related Posts with Separating a character and a number part of a variable
Merging data but file not foundHello Statalists! I've been using STATA's merge function for a while, but this is something I've ne…
Fail to feed local or scalar as the number of observation in a loopHello everyone, My original data is like this with two variables: "class" and "classlist". I am try…
Problem concerning panel aata with duplicate time variablesDear all, I have a dataset of 40 companies with a total of 975 votes and want to look at the impact …
Extracting day and week from dateHi. I have a date variable named "date" in a string format. I converted it to the date format (varia…
Ploting Panel data averages with labelsDear Forum Members, I want to plot the country averages of growth of GDP per capita and population f…
Subscribe to:
Post Comments (Atom)
0 Response to Separating a character and a number part of a variable
Post a Comment