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
How to calculate weighted mean incomeI want to calculate a weighted mean income for each state. Here is a part of the sample. (I randoml…
putdocx + loop --> label?Hello! I'm using a loop to output graphs and save them directly to Word. Is there a possibility to i…
Generate cases according to a number in variableDear All, How do we create a number of cases according to the number in a variable. For example I w…
Exporting variable values rather than labelsHello I intend to use a dataset multiple times. After encoding all my string variables, I exported …
How to extract matrix elements to Word table using putdocx table?I have a matrix called matrix1 whose values are present and verified (e.g., using matrix list matrix…
Subscribe to:
Post Comments (Atom)
0 Response to Separating a character and a number part of a variable
Post a Comment