I have a string variable (Size) that contains numbers and characters. I want to subtract number and create new_var1 and subtract character and create new_var2. Which code do I have to use to get the results like below? Thank you.
SIZE NEW_VAR1 NEW_VAR2
0.13 AC 0.13 AC
2560 SF 2560 SF
2145 SF 2145 SF
1.12 AC 1.12 AC
Related Posts with Subtract number and character separately from a string variable
Updating stata journal packages and ssc (the parallel module)Hi all, Recently I realized that the parallel module, which I maintain, has not been updated in SSC…
Problems with collect layoutHi all, I aim at creating a table that reports the mean of credit_rationed1 (namely, the % of credi…
How can I use Stata to plot a graph like this?Dear all, Can I use Stata to plot a graph to visualize the treatment statuses of each observation in…
60 month rolling sd of returnsHey there, I have a problem with the rolling sd. I have monthly return data and need to construct a…
Looping increasing cellranges and importing to stataHi everyone ı deeply searched about my problem but ı couldnt find a solution. Here is my problem abo…
Subscribe to:
Post Comments (Atom)
0 Response to Subtract number and character separately from a string variable
Post a Comment